Skip to content

fix(sidebar): center mobile nav rows with flexbox to fix hover alignment - #307

Merged
raaymax merged 1 commit into
devfrom
fix/mobile-nav-hover-alignment
Jun 28, 2026
Merged

fix(sidebar): center mobile nav rows with flexbox to fix hover alignment#307
raaymax merged 1 commit into
devfrom
fix/mobile-nav-hover-alignment

Conversation

@raaymax

@raaymax raaymax commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes vertical misalignment of channel and user rows in the mobile sidebar nav. The previous centering relied on fixed height/line-height/vertical-align, which drifted out of alignment (visible on hover). Rows now use flexbox centering so labels stay vertically centered regardless of content height.

Changes

  • Replace per-row fixed height: 40px + line-height: 40px + vertical-align: middle with display: flex; align-items: center; min-height: 40px on .channel and .user rows.
  • Consolidate the duplicated channel/user style blocks into shared selectors.
  • Center the .user .text wrapper with flexbox and drop its default margin.

Testing

  • pnpm lint on the changed file — no new errors (one pre-existing, unrelated type-import warning).
  • CSS-only change; verified the mobile nav layout renders with rows vertically centered and hover state aligned.

Replace fixed line-height/vertical-align centering on channel and user
rows with flexbox (align-items: center) so labels stay vertically
centered, fixing hover misalignment in the mobile nav.
@raaymax
raaymax merged commit f09c6e2 into dev Jun 28, 2026
1 check passed
@raaymax
raaymax deleted the fix/mobile-nav-hover-alignment branch June 28, 2026 13:16
@raaymax raaymax mentioned this pull request Jul 24, 2026
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