Skip to content

Desktop: prevent a white sidebar corner over modals - #8264

Merged
oobabooga merged 3 commits into
unslothai:mainfrom
oobabooga:fix/studio-titlebar-modal-corner
Aug 10, 2026
Merged

oobabooga merged 3 commits into
unslothai:mainfrom
oobabooga:fix/studio-titlebar-modal-corner

Conversation

@oobabooga

@oobabooga oobabooga commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

Problem

Opening a modal in the light desktop app leaves a bright 12x12 square below the titlebar at the pinned sidebar boundary. The rest of the page is dimmed by the modal backdrop, so the square reads as a detached frontend artifact.

Root cause

The custom titlebar stays at z-70 so its window controls remain usable above modal surfaces. Its rounded sidebar-corner decoration was nested inside that stacking context even though it extends below the titlebar. Modal backdrops use z-50, so they could not dim the overflowing decoration.

Fix

Move the below-titlebar border and corner into a sibling z-45 layer. The decoration remains above the page chrome, modal backdrops now cover it, and the draggable titlebar and window controls remain at z-70.

Regression coverage enforces decoration < modal backdrop < titlebar for both dialogs and alert dialogs, and prevents the decoration from moving back inside the titlebar stacking context.

Testing

  • npm test (1,425 passed)
  • npm run typecheck
  • npm run build
  • Focused ESLint and formatting checks
  • git diff --check

Runtime validation

Ran the production Studio frontend in Chromium through Playwright with the desktop window layout and a pinned 360px sidebar, then opened the alert-dialog backdrop over the page.

  • Main reproduced the white square. Its sampled luminance was 253.67 against 176.67 on the adjacent backdrop, a 77.00-point mismatch.
  • This branch measured 176.00 against 176.67, reducing the mismatch to 0.67 while keeping the window controls above the backdrop.

Screenshots

Before

before

After

after

@oobabooga

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 47f75f5bf1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@oobabooga
oobabooga merged commit 3a628bb into unslothai:main Aug 10, 2026
5 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant