Skip to content

fix: align left sidebar navigation icon and text - #13326

Merged
tiensonqin merged 1 commit into
masterfrom
logseq/fix-sidebar-nav-icon-align-91b3
Sep 21, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
logseq/fix-sidebar-nav-icon-align-91b3

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes logseq/db-test#1238

Left sidebar Navigations rows (Journals, Flashcards, Pages, Graph view) showed labels sitting higher than their icons.

a.item is a 32px flex row with items-center. The 16px .ui__icon is centered at top: 8px, while text-sm gives the label a 20px line box centered at top: 6px. The extra 2px of line-height makes the text sit optically above the icon.

This change matches the nav label line-height to the 16px icon (leading-4) and keeps the icon in a 16×16 centered box.

Measured on the web app (Playwright / Chrome):

State iconTop textTop line-height delta
Before 8px 6px 20px -2px
After 8px 8px 16px 0

Before

Before: sidebar nav labels sit 2px higher than icons

After

After: sidebar nav icons and labels share the same 16px row alignment

Test plan

  • Open the left sidebar on the web app
  • Confirm Journals / Flashcards / Pages / Graph view icon and label share the same vertical alignment
  • Confirm Favorites / Recent page rows and the Navigations header are unchanged

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Copilot AI lite review requested due to automatic review settings September 19, 2026 17:11

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Match nav item line-height to the 16px icon so labels no longer sit 2px higher.

Co-authored-by: Tienson Qin <[email protected]>
@tiensonqin
tiensonqin force-pushed the logseq/fix-sidebar-nav-icon-align-91b3 branch from 6e90b84 to 55c8e4d Compare September 21, 2026 10:30
@tiensonqin
tiensonqin merged commit 9f57a6f into master Sep 21, 2026
9 checks passed
@tiensonqin
tiensonqin deleted the logseq/fix-sidebar-nav-icon-align-91b3 branch September 21, 2026 10:30
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 1, 2026
Match nav item line-height to the 16px icon so labels no longer sit 2px higher.

Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 8, 2026
Match nav item line-height to the 16px icon so labels no longer sit 2px higher.

Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot pushed a commit that referenced this pull request Oct 8, 2026
Match nav item line-height to the 16px icon so labels no longer sit 2px higher.

Co-authored-by: Cursor Agent <[email protected]>
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.

Icon and text is not aligned in left sidebar

3 participants