Skip to content

fix(web): use opaque background for maximized workspace panel - #4376

Open
terrytangyuan wants to merge 1 commit into
omnigent-ai:mainfrom
terrytangyuan:fix/fullscreen
Open

fix(web): use opaque background for maximized workspace panel#4376
terrytangyuan wants to merge 1 commit into
omnigent-ai:mainfrom
terrytangyuan:fix/fullscreen

Conversation

@terrytangyuan

@terrytangyuan terrytangyuan commented Aug 7, 2026

Copy link
Copy Markdown
Member

Related issue

N/A

Summary

In dark mode, the workspace panel's background is set to transparent so it blends into the canvas when docked. When the panel is maximized (fullscreen mode for viewing code changes), it uses absolute inset-0 to cover the full content area — but the transparent background lets the chat content underneath bleed through.

This fix:

  • Adds a data-maximized attribute to the workspace panel <aside> when maximized.
  • Gates the dark-mode transparent background rule with :not([data-maximized]) so it only applies when docked.
  • Applies var(--card-solid) as an opaque background when maximized, covering all themes (default, custom translucent sidebar, and built-in themes with semi-transparent --card values).

Test Plan

  1. Open the app in dark mode.
  2. Open a file or diff in the workspace panel.
  3. Click the maximize button to enter fullscreen.
  4. Verify the background is solid — no chat content visible behind the code.
  5. Click minimize to return to docked mode and verify the panel still blends into the canvas as before.
  6. Repeat with a custom theme that uses translucent sidebar.

Demo

Before (chat bleeds through maximized workspace panel):

Screenshot From 2026-08-07 15-38-29

Type of change

  • Bug fix
  • Feature
  • UI / frontend change
  • Refactor / chore
  • Docs
  • Test / CI
  • Breaking change

Test coverage

  • Unit tests added / updated
  • Integration tests added / updated
  • E2E tests added / updated
  • Manual verification completed
  • Existing tests cover this change
  • Not applicable

Coverage notes

CSS-only fix plus one data attribute. Verified manually by maximizing the workspace panel in dark mode and confirming the background is opaque. No automated test covers glassmorphism rendering.

Changelog

Maximized workspace panel no longer shows chat content through a transparent background in dark mode.

@github-actions github-actions Bot added the size/M Pull request size: M label Aug 7, 2026
@github-actions
github-actions Bot requested a review from daniellok-db August 7, 2026 19:49
The dark-mode glassmorphism rule clears the workspace panel's background
to transparent so it blends into the canvas when docked. When the panel
is maximized (absolute inset-0), this lets the chat content underneath
bleed through.

Add a data-maximized attribute to the panel and gate the transparent
background rules with :not([data-maximized]). Apply an explicit
var(--card-solid) background when maximized so the panel is opaque
across all themes.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@github-actions github-actions Bot added size/S Pull request size: S and removed size/M Pull request size: M labels Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Pull request size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants