This commit is contained in:
2025-11-02 12:22:02 +01:00
parent 824db2087c
commit 5bf64fc5f3
4 changed files with 25 additions and 14 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo } from 'react'; import React, { useCallback, useMemo } from 'react';
import { ChevronsRightIcon } from '../ui/icons'; import { SidebarExpandIcon } from '../ui/icons';
import { createDocumentsSurface } from '../documents/DocumentsPanel'; import { createDocumentsSurface } from '../documents/DocumentsPanel';
import { createDocumentViewerSurface } from '../preview/DocumentViewerPanel'; import { createDocumentViewerSurface } from '../preview/DocumentViewerPanel';
import { createDesktopSurface } from '../DesktopWorkspace'; import { createDesktopSurface } from '../DesktopWorkspace';
@@ -37,7 +37,7 @@ export const useWorkspaceSurface = ({
aria-label="Expand sidebar" aria-label="Expand sidebar"
title="Expand sidebar" title="Expand sidebar"
> >
<ChevronsRightIcon /> <SidebarExpandIcon />
</button> </button>
); );
}, [sidebarCollapsed, onExpandSidebar]); }, [sidebarCollapsed, onExpandSidebar]);
+2 -2
View File
@@ -3,7 +3,7 @@ import {
DownloadIcon, DownloadIcon,
ArrowLeftIcon, ArrowLeftIcon,
ArrowRightIcon, ArrowRightIcon,
ChevronsRightIcon, DetailPanelCollapseIcon,
AnalyzeIcon, AnalyzeIcon,
WindowMaximizeIcon, WindowMaximizeIcon,
} from '../ui/icons'; } from '../ui/icons';
@@ -860,7 +860,7 @@ const DetailPanel = ({
aria-label="Close detail panel" aria-label="Close detail panel"
title="Close detail panel" title="Close detail panel"
> >
<ChevronsRightIcon /> <DetailPanelCollapseIcon />
</button> </button>
), ),
]; ];
+2 -2
View File
@@ -5,7 +5,7 @@ import {
TrashIcon, TrashIcon,
EditIcon, EditIcon,
FolderIcon, FolderIcon,
ChevronsLeftIcon, SidebarCollapseIcon,
LogoutIcon, LogoutIcon,
ChevronDownIcon, ChevronDownIcon,
SettingsIcon, SettingsIcon,
@@ -533,7 +533,7 @@ const Sidebar = ({
aria-label="Collapse sidebar" aria-label="Collapse sidebar"
title="Collapse sidebar" title="Collapse sidebar"
> >
<ChevronsLeftIcon /> <SidebarCollapseIcon />
</button> </button>
), ),
] ]
+19 -8
View File
@@ -10,8 +10,6 @@ import {
IconArrowLeft, IconArrowLeft,
IconArrowRight, IconArrowRight,
IconArrowUp, IconArrowUp,
IconChevronsRight,
IconChevronsLeft,
IconAnalyze, IconAnalyze,
IconWindowMaximize, IconWindowMaximize,
IconTextScan2, IconTextScan2,
@@ -28,6 +26,9 @@ import {
IconSun, IconSun,
IconMoon, IconMoon,
IconDeviceLaptop, IconDeviceLaptop,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarLeftExpand,
IconLayoutSidebarRightCollapse,
} from '@tabler/icons-react'; } from '@tabler/icons-react';
import FolderSvg from '../assets/folder.svg'; import FolderSvg from '../assets/folder.svg';
@@ -139,8 +140,8 @@ export const ArrowRightIcon = ({ className, size = '1em', stroke = 1.6, ...rest
/> />
); );
export const ChevronsLeftIcon = ({ className, size = '1em', stroke = 1.6, ...rest }) => ( export const SidebarCollapseIcon = ({ className, size = '1em', stroke = 1.6, ...rest }) => (
<IconChevronsLeft <IconLayoutSidebarLeftCollapse
className={composeClassName('icon', className)} className={composeClassName('icon', className)}
size={size} size={size}
stroke={stroke} stroke={stroke}
@@ -148,8 +149,17 @@ export const ChevronsLeftIcon = ({ className, size = '1em', stroke = 1.6, ...res
/> />
); );
export const ChevronsRightIcon = ({ className, size = '1em', stroke = 1.6, ...rest }) => ( export const SidebarExpandIcon = ({ className, size = '1em', stroke = 1.6, ...rest }) => (
<IconChevronsRight <IconLayoutSidebarLeftExpand
className={composeClassName('icon', className)}
size={size}
stroke={stroke}
{...rest}
/>
);
export const DetailPanelCollapseIcon = ({ className, size = '1em', stroke = 1.6, ...rest }) => (
<IconLayoutSidebarRightCollapse
className={composeClassName('icon', className)} className={composeClassName('icon', className)}
size={size} size={size}
stroke={stroke} stroke={stroke}
@@ -356,8 +366,9 @@ export default {
DownloadIcon, DownloadIcon,
ViewListIcon, ViewListIcon,
ViewGridIcon, ViewGridIcon,
ChevronsLeftIcon, SidebarCollapseIcon,
ChevronsRightIcon, SidebarExpandIcon,
DetailPanelCollapseIcon,
AnalyzeIcon, AnalyzeIcon,
WindowMaximizeIcon, WindowMaximizeIcon,
FolderPlusIcon, FolderPlusIcon,