mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(nav): drop the redundant "Home" group label from the desktop sidebar
The sidebar has exactly one nav group, and the first entry is already "Dashboard" pointing to `/`, so the "HOME / Dashboard" pairing used to read as if there were two separate destinations for the homepage. Drop the group label and retire the `nav.home` locale key in every bundle. The collapse toggle keeps its position at the top-right of the strip.
This commit is contained in:
1 parent
d254e9cd98
commit
972c8a56dd
7 files changed
+9
-13
No files matched your search
@@ -158,7 +158,6 @@
|
||||
"description": "Ein unerwarteter Fehler ist aufgetreten. Du kannst es erneut versuchen, die technischen Details kopieren oder einen Bug-Report öffnen."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Dashboard",
|
||||
"measurements": "Messungen",
|
||||
"medications": "Medikamente",
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
"description": "An unexpected error occurred. You can retry, copy the technical details, or open a bug report."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Dashboard",
|
||||
"measurements": "Measurements",
|
||||
"medications": "Medications",
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
"description": "An unexpected error occurred. You can retry, copy the technical details, or open a bug report."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Panel",
|
||||
"measurements": "Measurements",
|
||||
"medications": "Medicamentos",
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
"description": "An unexpected error occurred. You can retry, copy the technical details, or open a bug report."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Tableau de bord",
|
||||
"measurements": "Measurements",
|
||||
"medications": "Médicaments",
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
"description": "An unexpected error occurred. You can retry, copy the technical details, or open a bug report."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Cruscotto",
|
||||
"measurements": "Measurements",
|
||||
"medications": "Farmaci",
|
||||
|
||||
@@ -158,7 +158,6 @@
|
||||
"description": "An unexpected error occurred. You can retry, copy the technical details, or open a bug report."
|
||||
},
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"dashboard": "Pulpit",
|
||||
"measurements": "Measurements",
|
||||
"medications": "Leki",
|
||||
|
||||
@@ -341,13 +341,15 @@ export function SidebarNav() {
|
||||
{renderCollapseToggle()}
|
||||
</div>
|
||||
) : (
|
||||
<div className="relative mb-1">
|
||||
<p className="text-foreground/75 px-3 text-xs font-semibold tracking-wider uppercase">
|
||||
{t("nav.home")}
|
||||
</p>
|
||||
<div className="absolute top-1/2 -right-1 -translate-y-1/2">
|
||||
{renderCollapseToggle()}
|
||||
</div>
|
||||
// v1.4.33 IW7 — drop the "Home" group label. The sidebar
|
||||
// has exactly one nav group, and the first entry is
|
||||
// already "Dashboard" pointing to `/`, so the previous
|
||||
// "HOME / Dashboard" pairing read as if there were two
|
||||
// separate destinations for the homepage. The collapse
|
||||
// toggle stays anchored to the top-right of the strip so
|
||||
// the visual rhythm of the sidebar header is unchanged.
|
||||
<div className="relative mb-1 flex h-5 items-center justify-end">
|
||||
{renderCollapseToggle()}
|
||||
</div>
|
||||
)}
|
||||
<div className="space-y-1">
|
||||
|
||||
Reference in new issue
Block a user