fix(ui): make the shared three-part profile the canonical header

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 13:02:56 +03:00
parent fdc93a3136
commit 55fa5fa6bc
7 changed files with 34 additions and 17 deletions
-2
View File
@@ -35,7 +35,6 @@ import {
ResizableViewport,
SceneAnnotation,
HeaderNavigation,
HeaderProfile,
HeaderWorkspace,
Icon,
IconButton,
@@ -2163,7 +2162,6 @@ export function CatalogApp() {
}
right={
<UserProfileMenu
variant="header"
triggerLabel="Профиль"
triggerIcon="inbox"
displayName={sessionProfile?.user?.displayName || "Профиль"}
+1 -1
View File
@@ -15,7 +15,7 @@ export function EnvironmentCatalogDemo() {
useEffect(() => () => urls.current.forEach(url => URL.revokeObjectURL(url)), []);
return <>
<div className="catalog-environment-actions">
<UserProfileMenu displayName="DC" subtitle="Каталог компонентов" triggerLabel={null}
<UserProfileMenu variant="default" displayName="DC" subtitle="Каталог компонентов" triggerLabel={null}
actions={[{ id: "settings", label: "Настройки", icon: "settings", onSelect: () => setOpen(true) }]} />
<Button variant="primary" tone="neutral" onClick={() => setOpen(true)}>Настройки окружения</Button>
<Button variant="primary" tone="neutral" disabled>Неактивное действие</Button>