mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): revert offset scrollbars
The wonky padding is too janky. Just overlay for now.
This commit is contained in:
parent
ade4ec5fd8
commit
2cee8bebb2
@ -3,9 +3,9 @@ import { ScrollArea, ScrollAreaProps } from '@mantine/core';
|
|||||||
type IAIScrollArea = ScrollAreaProps;
|
type IAIScrollArea = ScrollAreaProps;
|
||||||
|
|
||||||
export default function IAIScrollArea(props: IAIScrollArea) {
|
export default function IAIScrollArea(props: IAIScrollArea) {
|
||||||
const { offsetScrollbars = true, ...rest } = props;
|
const { ...rest } = props;
|
||||||
return (
|
return (
|
||||||
<ScrollArea w="100%" offsetScrollbars={offsetScrollbars} {...rest}>
|
<ScrollArea w="100%" {...rest}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
);
|
);
|
||||||
|
@ -55,7 +55,7 @@ const ParametersPinnedWrapper = (props: ParametersPinnedWrapperProps) => {
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<PinParametersPanelButton
|
<PinParametersPanelButton
|
||||||
sx={{ position: 'absolute', top: 0, insetInlineEnd: 2 }}
|
sx={{ position: 'absolute', top: 0, insetInlineEnd: 0 }}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
@ -26,7 +26,7 @@ const ImageToImageTab = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
|
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
|
||||||
<ParametersPinnedWrapper>
|
<ParametersPinnedWrapper>
|
||||||
<ImageToImageTabParameters />
|
<ImageToImageTabParameters />
|
||||||
</ParametersPinnedWrapper>
|
</ParametersPinnedWrapper>
|
||||||
|
@ -6,7 +6,7 @@ import TextToImageTabParameters from './TextToImageTabParameters';
|
|||||||
|
|
||||||
const TextToImageTab = () => {
|
const TextToImageTab = () => {
|
||||||
return (
|
return (
|
||||||
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
|
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
|
||||||
<ParametersPinnedWrapper>
|
<ParametersPinnedWrapper>
|
||||||
<TextToImageTabParameters />
|
<TextToImageTabParameters />
|
||||||
</ParametersPinnedWrapper>
|
</ParametersPinnedWrapper>
|
||||||
|
@ -6,7 +6,7 @@ import UnifiedCanvasParameters from './UnifiedCanvasParameters';
|
|||||||
|
|
||||||
const UnifiedCanvasTab = () => {
|
const UnifiedCanvasTab = () => {
|
||||||
return (
|
return (
|
||||||
<Flex sx={{ gap: 2, w: 'full', h: 'full' }}>
|
<Flex sx={{ gap: 4, w: 'full', h: 'full' }}>
|
||||||
<ParametersPinnedWrapper>
|
<ParametersPinnedWrapper>
|
||||||
<UnifiedCanvasParameters />
|
<UnifiedCanvasParameters />
|
||||||
</ParametersPinnedWrapper>
|
</ParametersPinnedWrapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user