Skip to content

fix(ui): prevent Podman logo from clipping in mobile sidebar header - #682

Open
yashwaghmare123 wants to merge 1 commit into
containers:mainfrom
yashwaghmare123:fix/mobile-sidebar-logo-clipping
Open

fix(ui): prevent Podman logo from clipping in mobile sidebar header#682
yashwaghmare123 wants to merge 1 commit into
containers:mainfrom
yashwaghmare123:fix/mobile-sidebar-logo-clipping

Conversation

@yashwaghmare123

Copy link
Copy Markdown

What

The Podman logo gets cut off at the top when the mobile sidebar menu is open.

Why

The logo has a fixed height (6.25rem) that's sized for the desktop navbar,
which is stretched taller to fit it. The mobile sidebar header doesn't have
that same extra height, so the logo overflows and gets clipped.

Fix

Added a small override so the logo scales down just inside the mobile
sidebar, without touching how it looks on desktop:

```css
.navbar-sidebar__brand .navbar__logo {
height: 3rem;
}
```

Testing

Tested locally on mobile view with the sidebar open, checked desktop still
looks the same, and checked both light and dark mode.

Screenshots

Before:
image
After:
image

Signed-off-by: Yash Waghmare <157041623+yashwaghmare123@users.noreply.github.com>
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