Repository navigation
fix(hub): keep the comments panel visible when opened - #362
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
A moderate CSS specificity conflict can override the minimized layout, causing the comments sidebar and preview to render incorrectly in the MinimizedWithComments scenario.
1 open issue
What changed in this PR
This pull request fixes the prototype review layout so the comments panel remains visible regardless of stylesheet load order.
Changes:
- Increases selector specificity for the comments-open layout on wide screens.
- Applies the same specificity adjustment for narrow screens.
- Preserves the intended side-by-side wide layout and stacked narrow layout.
| File | Description |
|---|---|
| hub/client/pages/prototypes-show-page/styles.css | Updates the comments-open grid selectors for wide and narrow layouts so they take precedence over the default workspace styles. |
Review effort: Lite (adaptive)
| } | ||
|
|
||
| .review-page--comments-open { | ||
| .review-page.review-page--comments-open { |
There was a problem hiding this comment.
Fixed in 9cfabf6. Both comments-open rules now use .review-page--comments-open:not(.review-page--minimized), so they no longer apply to minimized pages and the minimized single-column layout stays in place. I checked the computed grid with the real stylesheets loaded in import order. A minimized page with comments open now has one full-width column and no gap, and the non-minimized layouts are unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Why
Clicking Comments could open the panel without making it visible. When the default workspace stylesheet loaded last, it overrode the open layout and left the panel with no space.
What changes
The open layout now takes precedence regardless of stylesheet load order. Comments appear beside the preview in wide layouts and below it in narrow layouts.