mirror of
https://github.com/hansjone/netx.git
synced 2026-10-15 22:20:46 +08:00
Shorten English launcher labels so they fit under the app icons.
"Network Management" -> "Network", "NE Management" -> "NE Mgmt", etc. Tiles show the full module title on hover and in the aria-label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
35d58a3688
commit
96244daba7
2 changed files with 8 additions and 6 deletions
|
|
@ -181,6 +181,8 @@ export function WorkbenchModules({ opsCandidates, systemMods }: Props) {
|
|||
<div
|
||||
key={mod.moduleId}
|
||||
className={`wb-tile-wrap${editing ? " wb-tile-wrap--edit" : ""}${dragId === mod.moduleId ? " is-dragging" : ""}`}
|
||||
// Launcher labels may be abbreviated; hover shows the full module title.
|
||||
title={editing ? undefined : t(mod.titleKey)}
|
||||
draggable={editing}
|
||||
onDragStart={editing ? onDragStart(mod.moduleId) : undefined}
|
||||
onDragOver={editing ? onDragOver(mod.moduleId) : undefined}
|
||||
|
|
@ -192,8 +194,8 @@ export function WorkbenchModules({ opsCandidates, systemMods }: Props) {
|
|||
className={`wb-tile wb-tile--${mod.iconTone}`}
|
||||
aria-label={
|
||||
editing
|
||||
? t(mod.labelKey)
|
||||
: `${t(mod.labelKey)} · ${t("workbench.openModule")}`
|
||||
? t(mod.titleKey)
|
||||
: `${t(mod.titleKey)} · ${t("workbench.openModule")}`
|
||||
}
|
||||
onPress={() => {
|
||||
if (editing) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue