feat(ui): tidy canvas toolbar buttons

This commit is contained in:
psychedelicious 2024-08-28 16:04:37 +10:00
parent 5a403f087d
commit 972f03960a
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export const CanvasSettingsPopover = memo(() => {
return (
<Popover isLazy>
<PopoverTrigger>
<IconButton aria-label={t('common.settingsLabel')} icon={<RiSettings4Fill />} />
<IconButton aria-label={t('common.settingsLabel')} icon={<RiSettings4Fill />} variant="ghost" />
</PopoverTrigger>
<PopoverContent>
<PopoverArrow />

View File

@ -29,13 +29,14 @@ export const UndoRedoButtonGroup = memo(() => {
]);
return (
<ButtonGroup>
<ButtonGroup isAttached={false}>
<IconButton
aria-label={t('unifiedCanvas.undo')}
tooltip={t('unifiedCanvas.undo')}
onClick={handleUndo}
icon={<PiArrowCounterClockwiseBold />}
isDisabled={!mayUndo}
variant="ghost"
/>
<IconButton
aria-label={t('unifiedCanvas.redo')}
@ -43,6 +44,7 @@ export const UndoRedoButtonGroup = memo(() => {
onClick={handleRedo}
icon={<PiArrowClockwiseBold />}
isDisabled={!mayRedo}
variant="ghost"
/>
</ButtonGroup>
);