mirror of
https://github.com/hansjone/netx.git
synced 2026-10-17 13:23:21 +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
|
<div
|
||||||
key={mod.moduleId}
|
key={mod.moduleId}
|
||||||
className={`wb-tile-wrap${editing ? " wb-tile-wrap--edit" : ""}${dragId === mod.moduleId ? " is-dragging" : ""}`}
|
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}
|
draggable={editing}
|
||||||
onDragStart={editing ? onDragStart(mod.moduleId) : undefined}
|
onDragStart={editing ? onDragStart(mod.moduleId) : undefined}
|
||||||
onDragOver={editing ? onDragOver(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}`}
|
className={`wb-tile wb-tile--${mod.iconTone}`}
|
||||||
aria-label={
|
aria-label={
|
||||||
editing
|
editing
|
||||||
? t(mod.labelKey)
|
? t(mod.titleKey)
|
||||||
: `${t(mod.labelKey)} · ${t("workbench.openModule")}`
|
: `${t(mod.titleKey)} · ${t("workbench.openModule")}`
|
||||||
}
|
}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
if (editing) return;
|
if (editing) return;
|
||||||
|
|
|
||||||
|
|
@ -138,12 +138,12 @@ const workbench = {
|
||||||
},
|
},
|
||||||
cards: {
|
cards: {
|
||||||
umeSync: "UME Sync",
|
umeSync: "UME Sync",
|
||||||
network: "Network Management",
|
network: "Network",
|
||||||
managedNe: "NE Management",
|
managedNe: "NE Mgmt",
|
||||||
collect: "Batch Collect",
|
collect: "Collect",
|
||||||
webcrt: "WebCRT",
|
webcrt: "WebCRT",
|
||||||
topology: "Topology",
|
topology: "Topology",
|
||||||
portTrafficWall: "Traffic wall",
|
portTrafficWall: "Traffic Wall",
|
||||||
users: "Users",
|
users: "Users",
|
||||||
audit: "Audit",
|
audit: "Audit",
|
||||||
apiKeys: "API Keys",
|
apiKeys: "API Keys",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue