mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-07 11:09:58 +02:00
re-add menu button to sidebar
This commit is contained in:
@@ -3,8 +3,10 @@ import { useNavigate } from 'react-router';
|
||||
|
||||
import styles from './action-bar.module.css';
|
||||
|
||||
import { AppMenu } from '/@/renderer/features/titlebar/components/app-menu';
|
||||
import { useCommandPalette } from '/@/renderer/store';
|
||||
import { Button } from '/@/shared/components/button/button';
|
||||
import { DropdownMenu } from '/@/shared/components/dropdown-menu/dropdown-menu';
|
||||
import { Grid } from '/@/shared/components/grid/grid';
|
||||
import { Group } from '/@/shared/components/group/group';
|
||||
import { Icon } from '/@/shared/components/icon/icon';
|
||||
@@ -23,7 +25,7 @@ export const ActionBar = () => {
|
||||
style={{ padding: '0 var(--theme-spacing-md)' }}
|
||||
w="100%"
|
||||
>
|
||||
<Grid.Col span={8}>
|
||||
<Grid.Col span={7}>
|
||||
<TextInput
|
||||
leftSection={<Icon icon="search" />}
|
||||
onClick={open}
|
||||
@@ -36,13 +38,23 @@ export const ActionBar = () => {
|
||||
readOnly
|
||||
/>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={4}>
|
||||
<Grid.Col span={5}>
|
||||
<Group gap="sm" grow wrap="nowrap">
|
||||
<DropdownMenu position="bottom-start">
|
||||
<DropdownMenu.Target>
|
||||
<Button p="0.5rem">
|
||||
<Icon icon="menu" size="lg" />
|
||||
</Button>
|
||||
</DropdownMenu.Target>
|
||||
<DropdownMenu.Dropdown>
|
||||
<AppMenu />
|
||||
</DropdownMenu.Dropdown>
|
||||
</DropdownMenu>
|
||||
<Button onClick={() => navigate(-1)} p="0.5rem">
|
||||
<Icon icon="arrowLeftS" />
|
||||
<Icon icon="arrowLeftS" size="lg" />
|
||||
</Button>
|
||||
<Button onClick={() => navigate(1)} p="0.5rem">
|
||||
<Icon icon="arrowRightS" />
|
||||
<Icon icon="arrowRightS" size="lg" />
|
||||
</Button>
|
||||
</Group>
|
||||
</Grid.Col>
|
||||
|
||||
Reference in New Issue
Block a user