Skip to content

Layout Fix: hide empty left and right panels#1416

Merged
demiankatz merged 1 commit intoUniversalViewer:release-4.2.0from
crhallberg:fix-grid-hidden-panels
May 16, 2025
Merged

Layout Fix: hide empty left and right panels#1416
demiankatz merged 1 commit intoUniversalViewer:release-4.2.0from
crhallberg:fix-grid-hidden-panels

Conversation

@crhallberg
Copy link
Copy Markdown
Contributor

@crhallberg crhallberg commented May 14, 2025

The grid is set to 30px for closed panels. When a panel isn't active (audio or single page pdfs) this results in a 30px wide gray bar.

This PR sets the CSS variables to "auto" when a panel is empty, collapsing that space and giving it to the center view.

Florence Nightingale (audio) is a good test for this since it has no left panel. Compare https://universalviewer.dev to preview below!

@crhallberg crhallberg requested a review from jamesmisson May 14, 2025 14:19
@vercel
Copy link
Copy Markdown

vercel bot commented May 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 2:20pm

demiankatz
demiankatz previously approved these changes May 14, 2025
Copy link
Copy Markdown
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Looks good and makes sense to me, but I'm interested in what @LlGC-jop thinks, since he did much of the recent CSS redesign and would have a more complete perspective than I do.

I think we should rebase this onto the release-4.2.0 branch so we can include the fix in the next release; let me know if you need any help sorting that out.

@crhallberg crhallberg changed the base branch from dev to release-4.2.0 May 15, 2025 13:17
@crhallberg crhallberg dismissed demiankatz’s stale review May 15, 2025 13:17

The base branch was changed.

@crhallberg
Copy link
Copy Markdown
Contributor Author

This one rebased quietly.

Copy link
Copy Markdown
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @crhallberg, this looks good to me! I'll hold off on merging until tomorrow's stand-up, just in case anyone has concerns.

@demiankatz demiankatz merged commit 5b5ce6c into UniversalViewer:release-4.2.0 May 16, 2025
4 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.

2 participants