Skip to content

fix(hub): keep the comments panel visible when opened - #362

Merged
arniebradfo merged 2 commits into
build/hub/newfrom
fix/hub-comments-panel
Nov 24, 2026
Merged

arniebradfo merged 2 commits into
build/hub/newfrom
fix/hub-comments-panel

Conversation

@arniebradfo

Copy link
Copy Markdown
Collaborator

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.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@arniebradfo
arniebradfo requested review from a team and nshki as code owners November 24, 2026 20:18
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@arniebradfo
arniebradfo merged commit 2872a56 into build/hub/new Nov 24, 2026
58 checks passed
@arniebradfo
arniebradfo deleted the fix/hub-comments-panel branch November 24, 2026 21:31
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.

2 participants