diff --git a/frontend/src/components/editor/EditorMenuBar.css b/frontend/src/components/editor/EditorMenuBar.css index abe54e53..a4b1a08f 100644 --- a/frontend/src/components/editor/EditorMenuBar.css +++ b/frontend/src/components/editor/EditorMenuBar.css @@ -84,6 +84,18 @@ margin: 4px 6px; } +/* Small uppercase section header inside a menu (the Account menu groups + the pro items and the Language list under one trigger). */ +.emb-section-label { + padding: 6px 12px 2px; + font-size: 10px; + font-weight: 700; + letter-spacing: 0.8px; + text-transform: uppercase; + color: #8a8f98; + user-select: none; +} + /* Same PRO pill the old toolbar overflow used (tb-overflow-pro) — users should know an item is premium BEFORE clicking, not via a surprise upgrade prompt. */ diff --git a/frontend/src/components/editor/EditorMenuBar.tsx b/frontend/src/components/editor/EditorMenuBar.tsx index 47d88319..4aab8d1e 100644 --- a/frontend/src/components/editor/EditorMenuBar.tsx +++ b/frontend/src/components/editor/EditorMenuBar.tsx @@ -52,7 +52,7 @@ const SITE = import.meta.env.VITE_PRO_BUILD ? '' : 'https://velxio.dev'; export const EditorMenuBar: React.FC = () => { const { t } = useTranslation(); - const [open, setOpen] = useState<'file' | 'edit' | 'view' | 'lang' | 'help' | null>(null); + const [open, setOpen] = useState<'file' | 'edit' | 'view' | 'account' | 'help' | null>(null); const rootRef = useRef(null); // Re-render when owners (un)register their commands. @@ -180,7 +180,7 @@ export const EditorMenuBar: React.FC = () => { ); - const menu = (which: 'file' | 'edit' | 'view' | 'lang' | 'help', label: string, items: Item[]): React.ReactNode => ( + const menu = (which: 'file' | 'edit' | 'view' | 'account' | 'help', label: string, items: Item[]): React.ReactNode => (
); diff --git a/frontend/src/i18n/locales/en/common2.json b/frontend/src/i18n/locales/en/common2.json index d192404f..8ff49eb9 100644 --- a/frontend/src/i18n/locales/en/common2.json +++ b/frontend/src/i18n/locales/en/common2.json @@ -378,6 +378,7 @@ "edit": "Edit", "view": "View", "language": "Language", + "account": "Account", "help": "Help", "newProject": "New workspace", "newFile": "New file", diff --git a/frontend/src/i18n/locales/es/common2.json b/frontend/src/i18n/locales/es/common2.json index 559ad389..2d3a4150 100644 --- a/frontend/src/i18n/locales/es/common2.json +++ b/frontend/src/i18n/locales/es/common2.json @@ -378,6 +378,7 @@ "edit": "Edición", "view": "Ver", "language": "Idioma", + "account": "Cuenta", "help": "Ayuda", "newProject": "Nuevo espacio de trabajo", "newFile": "Nuevo archivo",