Skip to content

perf(ui): drop the image zoom overlay's backdrop blur #5227

Closed

Description

@tale-code-bot

Split from #4348 (item 4: the other blurred surfaces), reviewed in TALE-69.

What it costs now

A zoomable image in markdown opens over a Radix dialog overlay, packages/ui/src/markdown/components/image-zoom.tsx:52 on main 8acb7b8:

  • its classes are fixed inset-0 z-50 bg-black/80 backdrop-blur-sm, an 8 px blur of the whole page behind 80% black;
  • without GPU compositing, the frame that opens the image pays for blurring the viewport.

The platform shows this overlay for every image in chat markdown (baseComponents, through IncrementalMarkdown).

Measured on 2026-10-30, on a production build of the docs site, which renders the same component (image-zoom.tsx was then the file it is on main 8acb7b8):

  • Browser: Chromium 141.0.7390.37 headless shell, software rendering, 1440×900, DPR 1.
  • Flow: /platform/admin/api-keys; a click opens the first zoomable image, and Escape closes it.
  • Per open: the longest Event Timing entry among pointerdown, pointerup, click, mousedown and mouseup, with a 16 ms threshold.
  • Design: ABBA, as built against a style that sets backdrop-filter: none on this overlay, 40 opens per arm.
Arm Median Min–max Opens over 100 ms
As built 144 ms 104–184 ms 40/40
backdrop-filter: none 72 ms 40–96 ms 0/40

That misses #4348's budget of ≤ 100 ms median per interaction. The cost is paid once per open, and behind 80% black the blur barely shows.

What to do

Drop backdrop-blur-sm from the overlay and keep bg-black/80. The dim already sets the image apart from the page, as 3019f2c did for the search palette's overlay.

Done means:

  • the open overlay computes backdrop-filter: none, held by a browser test;
  • opening a zoomed image stays within ≤ 100 ms median and ≤ 200 ms max on the same harness, ABBA against the change's base;
  • the overlay still dims the page, and the dialog's focus, title, Escape and click-to-close behave as before.

Activity

  1. added
    perf
    agent-ready
    on Oct 31, 2026
  2. added a commit that references this issue on Nov 2, 2026
    cdb0318
  3. added a commit that references this issue on Nov 2, 2026
    92f7377
  4. added 2 commits that reference this issue on Nov 2, 2026
    817e3bb
    8d1ef69
  5. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    Done on the feature line: feature train #5297 landed on release/0.6 by rebase at 2026-11-02 09:37:43 UTC. This issue's change is commit 8d1ef696cd54dc79ff50dcacd557ce20059fc0b0 (perf(ui): drop the image zoom overlay's backdrop blur) on release/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reach main, so the feature-train role closes this one now. Board task: TALE-311.

  6. added 13 commits that reference this issue on Nov 2, 2026
    ad97060
    e016a13
    94baf4e
    87385c7
    65bbbb7
    aaa752b
    44c145b
    fa7b8cd
    8dea257
    c375bdb
    a1989e1
    b73377a
    5e9a1b9
  7. added a commit that references this issue on Nov 15, 2026
    683020e
  8. added a commit that references this issue on Nov 23, 2026
    1073ca1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions