mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
[ENG-631] TopBar improvements & misc fixes (#837)
* fix things * added back/forward buttons to settings * split top bar context into left and right * hook up path * fix background jobs hidden from job manager * core * fix type + quick preview transition * fix selected item color contrast * fix close button on quick preview * clean up job ui for light theme * Improve media view overscan --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import { ArrowLeft, ArrowRight } from 'phosphor-react';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { Button, Tooltip } from '@sd/ui';
|
||||
import { useSearchStore } from '~/hooks';
|
||||
|
||||
export const NavigationButtons = () => {
|
||||
const navigate = useNavigate();
|
||||
const { isFocused } = useSearchStore();
|
||||
const idx = history.state.idx as number;
|
||||
|
||||
return (
|
||||
<div className="flex">
|
||||
<Tooltip label="Navigate back">
|
||||
<Button
|
||||
size="icon"
|
||||
className="text-[14px] text-ink-dull"
|
||||
onClick={() => navigate(-1)}
|
||||
disabled={isFocused || idx === 0}
|
||||
>
|
||||
<ArrowLeft weight="bold" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Tooltip label="Navigate forward">
|
||||
<Button
|
||||
size="icon"
|
||||
className="text-[14px] text-ink-dull"
|
||||
onClick={() => navigate(1)}
|
||||
disabled={isFocused || idx === history.length - 1}
|
||||
>
|
||||
<ArrowRight weight="bold" />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -4,7 +4,6 @@ export * from './ColorPicker';
|
||||
export * from './DismissibleNotice';
|
||||
export * from './DragRegion';
|
||||
export * from './ExternalObject';
|
||||
export * from './NavigationButtons';
|
||||
export * from './PasswordMeter';
|
||||
export * from './SubtleButton';
|
||||
export * from './TrafficLights';
|
||||
|
||||
Reference in New Issue
Block a user