fix(ui): position floating buttons

This commit is contained in:
psychedelicious 2023-08-23 16:58:49 +10:00
parent 3651cf7ee2
commit 90abd0fe49
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ const FloatingGalleryButton = ({
transform="translate(0, -50%)"
minW={8}
top="50%"
insetInlineEnd={0}
insetInlineEnd="1.63rem"
>
<IAIIconButton
tooltip="Show Gallery (G)"

View File

@ -44,7 +44,7 @@ const FloatingSidePanelButtons = ({
transform="translate(0, -50%)"
minW={8}
top="50%"
insetInlineStart="4.5rem"
insetInlineStart="5.13rem"
direction="column"
gap={2}
>

View File

@ -265,7 +265,7 @@ const InvokeTabs = () => {
</Panel>
<ResizeHandle
onDoubleClick={resetSidePanel}
isCollapsed={isSidePanelCollapsed}
// isCollapsed={isSidePanelCollapsed}
collapsedDirection={isSidePanelCollapsed ? 'left' : undefined}
/>
<FloatingSidePanelButtons
@ -282,8 +282,8 @@ const InvokeTabs = () => {
{!NO_GALLERY_TABS.includes(activeTabName) && (
<>
<ResizeHandle
isCollapsed={isGalleryPanelCollapsed}
onDoubleClick={resetGalleryPanel}
// isCollapsed={isGalleryPanelCollapsed}
collapsedDirection={isGalleryPanelCollapsed ? 'right' : undefined}
/>
<Panel