add page icons to collapsed share menu
This commit is contained in:
1 parent
9e76bd4cf8
commit
35680918c0
4 files changed
+88
-66
No files matched your search
+13
-13
@@ -1,15 +1,3 @@
|
||||
import {
|
||||
Button,
|
||||
type ButtonProps,
|
||||
Column,
|
||||
Focusable,
|
||||
Icon,
|
||||
Row,
|
||||
Text,
|
||||
Tooltip,
|
||||
TooltipTrigger,
|
||||
} from '@umami/react-zen';
|
||||
import Link from 'next/link';
|
||||
import { AdminNav } from '@/app/(main)/admin/AdminNav';
|
||||
import { SettingsNav } from '@/app/(main)/settings/SettingsNav';
|
||||
import { WebsiteNav } from '@/app/(main)/websites/[websiteId]/WebsiteNav';
|
||||
@@ -25,6 +13,18 @@ import {
|
||||
} from '@/components/icons';
|
||||
import { UserButton } from '@/components/input/UserButton';
|
||||
import { Logo } from '@/components/svg';
|
||||
import {
|
||||
Button,
|
||||
type ButtonProps,
|
||||
Column,
|
||||
Focusable,
|
||||
Icon,
|
||||
Row,
|
||||
Text,
|
||||
Tooltip,
|
||||
TooltipTrigger,
|
||||
} from '@umami/react-zen';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function SideNav(props: any) {
|
||||
const { t, labels } = useMessages();
|
||||
@@ -79,7 +79,7 @@ export function SideNav(props: any) {
|
||||
minHeight="0"
|
||||
margin="2"
|
||||
style={{
|
||||
width: isCollapsed ? '55px' : '240px',
|
||||
width: isCollapsed ? '60px' : '240px',
|
||||
transition: 'width 0.2s ease-in-out',
|
||||
overflow: 'hidden',
|
||||
}}
|
||||
|
||||
@@ -18,7 +18,7 @@ export function WebsiteNav({
|
||||
const { items, selectedKey } = useWebsiteNavItems(websiteId);
|
||||
|
||||
return (
|
||||
<Column gap="2">
|
||||
<Column gap="2" marginTop={isCollapsed ? '2' : undefined}>
|
||||
<Link href={renderUrl('/websites', false)} role="button" onClick={onItemClick}>
|
||||
<TooltipTrigger isDisabled={!isCollapsed} delay={0}>
|
||||
<Focusable>
|
||||
|
||||
Reference in new issue
Block a user