mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
fix(nav): even out the profile menu row spacing
The Theme sub-trigger inherited the shared sub-trigger padding (py-1.5, no min-height) while every sibling row carries min-h-11 py-2, so the Theme row sat a few pixels shorter and the menu read as unevenly spaced. Match the item height on this instance only, leaving other dropdowns' sub-triggers untouched.
This commit is contained in:
1 parent
6d990b769c
commit
9cef089192
1 file changed
+7
-1
@@ -126,7 +126,13 @@ export function TopBar() {
|
||||
for the small audience that still reaches it (admins
|
||||
only, on the order of once or twice a year). */}
|
||||
<DropdownMenuSub>
|
||||
<DropdownMenuSubTrigger>
|
||||
{/* v1.22.1 — the shared sub-trigger ships `py-1.5` and no
|
||||
min-height, while every sibling `DropdownMenuItem` carries
|
||||
`min-h-11 py-2`. Left as-is the Theme row sits a few pixels
|
||||
shorter than the rows around it and the menu reads as
|
||||
unevenly spaced. Match the item height here (instance-level
|
||||
override, so no other dropdown's sub-trigger is touched). */}
|
||||
<DropdownMenuSubTrigger className="min-h-11 py-2">
|
||||
{themeIcon}
|
||||
<span className="ml-2">{t("nav.theme")}</span>
|
||||
</DropdownMenuSubTrigger>
|
||||
|
||||
Reference in new issue
Block a user