Revert "fix: Rework the layout of the parameters scrollbar"

This reverts commit 6f1fc397f7.
This commit is contained in:
psychedelicious 2023-05-13 23:59:30 +10:00
parent 5a7b687c84
commit d3a7fea939
5 changed files with 7 additions and 12 deletions

View File

@ -43,18 +43,13 @@ const ParametersPinnedWrapper = (props: ParametersPinnedWrapperProps) => {
h: 'full',
w: 'full',
position: 'absolute',
paddingRight: 4,
}}
>
{props.children}
</Flex>
</OverlayScrollable>
<PinParametersPanelButton
sx={{
position: 'absolute',
top: 0,
insetInlineEnd: 4,
}}
sx={{ position: 'absolute', top: 0, insetInlineEnd: 0 }}
/>
</Box>
);

View File

@ -8,9 +8,9 @@ const OverlayScrollable = (props: PropsWithChildren) => {
style={{ height: '100%', width: '100%' }}
options={{
scrollbars: {
visibility: 'visible',
autoHide: 'never',
autoHideDelay: 500,
visibility: 'auto',
autoHide: 'move',
autoHideDelay: 1300,
theme: 'os-theme-dark',
},
overflow: { x: 'hidden' },

View File

@ -23,7 +23,7 @@ const ImageToImageTab = () => {
}, []);
return (
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
<ParametersPinnedWrapper>
<ImageToImageTabParameters />
</ParametersPinnedWrapper>

View File

@ -6,7 +6,7 @@ import ParametersPinnedWrapper from '../../ParametersPinnedWrapper';
const TextToImageTab = () => {
return (
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
<ParametersPinnedWrapper>
<TextToImageTabParameters />
</ParametersPinnedWrapper>

View File

@ -20,7 +20,7 @@ const UnifiedCanvasTab = () => {
const { shouldUseCanvasBetaLayout } = useAppSelector(selector);
return (
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
<ParametersPinnedWrapper>
<UnifiedCanvasParameters />
</ParametersPinnedWrapper>