Skip to content

Commit 645f447

Browse files
committed
layout fixes
1 parent 41ea040 commit 645f447

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

invokeai/frontend/web/src/features/controlLayers/components/RasterLayer/RasterLayerCurvesAdjustmentsEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ const CurveGraph = memo(function CurveGraph(props: CurveGraphProps) {
409409

410410
return (
411411
<Flex flexDir="column" gap={4}>
412-
<Text fontSize="xs" color={channelColor[channel]}>
412+
<Text fontSize="sm" color={channelColor[channel]}>
413413
{title}
414414
</Text>
415415
<canvas

invokeai/frontend/web/src/features/controlLayers/components/RasterLayer/RasterLayerSimpleAdjustmentsEditor.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ type AdjustmentSliderRowProps = {
1616
};
1717

1818
const AdjustmentSliderRow = ({ label, value, onChange, min = -1, max = 1, step = 0.01 }: AdjustmentSliderRowProps) => (
19-
<FormControl pr={2}>
20-
<Flex alignItems="center" gap={3} mb={1}>
21-
<FormLabel m={0} flexShrink={0} minW="90px">
22-
{label}
23-
</FormLabel>
24-
<CompositeNumberInput value={value} onChange={onChange} min={min} max={max} step={step} flex="0 0 96px" />
25-
</Flex>
19+
<FormControl orientation="horizontal" mb={1} pr={2} w="full">
20+
<FormLabel m={0} minW="90px">
21+
{label}
22+
</FormLabel>
2623
<CompositeSlider value={value} onChange={onChange} min={min} max={max} step={step} marks />
24+
<CompositeNumberInput value={value} onChange={onChange} min={min} max={max} step={step} />
2725
</FormControl>
2826
);
2927

@@ -68,7 +66,7 @@ export const RasterLayerSimpleAdjustmentsEditor = memo(() => {
6866
);
6967

7068
return (
71-
<>
69+
<Flex px={4} direction="column">
7270
<AdjustmentSliderRow
7371
label={t('controlLayers.adjustments.brightness')}
7472
value={simple.brightness}
@@ -98,7 +96,7 @@ export const RasterLayerSimpleAdjustmentsEditor = memo(() => {
9896
max={1}
9997
step={0.01}
10098
/>
101-
</>
99+
</Flex>
102100
);
103101
});
104102

0 commit comments

Comments
 (0)