mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): use make label widths grow
Fixes issue where translations overflowed due to hardcoded widths.
This commit is contained in:
parent
2a41fd0b29
commit
55dfabb892
@ -53,4 +53,4 @@ export const AspectRatioSelect = memo(() => {
|
||||
|
||||
AspectRatioSelect.displayName = 'AspectRatioSelect';
|
||||
|
||||
const selectStyles: SystemStyleObject = { minW: 48 };
|
||||
const selectStyles: SystemStyleObject = { minW: 24 };
|
||||
|
@ -12,7 +12,7 @@ import { memo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const labelProps: InvLabelProps = {
|
||||
w: '9.2rem',
|
||||
minW: '9.2rem',
|
||||
};
|
||||
|
||||
const labelProps2: InvLabelProps = {
|
||||
|
@ -20,7 +20,7 @@ import { memo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const coherenceLabelProps: FormLabelProps = {
|
||||
w: '4.5rem',
|
||||
minW: '4.5rem',
|
||||
};
|
||||
|
||||
export const CompositingSettingsAccordion = memo(() => {
|
||||
|
@ -25,7 +25,7 @@ import { memo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const labelProps: InvLabelProps = {
|
||||
w: '4rem',
|
||||
minW: '4rem',
|
||||
};
|
||||
|
||||
const badgesSelector = createMemoizedSelector(
|
||||
|
@ -43,11 +43,11 @@ const selector = createMemoizedSelector(
|
||||
);
|
||||
|
||||
const labelProps: InvLabelProps = {
|
||||
w: 12,
|
||||
minW: 12,
|
||||
};
|
||||
|
||||
const scalingLabelProps: InvLabelProps = {
|
||||
w: '4.5rem',
|
||||
minW: '4.5rem',
|
||||
};
|
||||
|
||||
export const ImageSettingsAccordion = memo(() => {
|
||||
|
@ -19,11 +19,11 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useIsRefinerAvailable } from 'services/api/hooks/useIsRefinerAvailable';
|
||||
|
||||
const aestheticLabelProps: InvLabelProps = {
|
||||
w: '9.2rem',
|
||||
minW: '9.2rem',
|
||||
};
|
||||
|
||||
const stepsScaleLabelProps: InvLabelProps = {
|
||||
w: '5rem',
|
||||
minW: '5rem',
|
||||
};
|
||||
|
||||
const selector = createMemoizedSelector(stateSelector, (state) => {
|
||||
|
@ -99,6 +99,7 @@ export const NO_GALLERY_TABS: InvokeTabName[] = ['modelManager', 'queue'];
|
||||
export const NO_SIDE_PANEL_TABS: InvokeTabName[] = ['modelManager', 'queue'];
|
||||
const panelStyles: CSSProperties = { height: '100%', width: '100%' };
|
||||
const GALLERY_MIN_SIZE_PCT = 20;
|
||||
const OPTIONS_PANEL_WIDTH = '434px';
|
||||
|
||||
const InvokeTabs = () => {
|
||||
const activeTabIndex = useAppSelector(activeTabIndexSelector);
|
||||
@ -191,7 +192,7 @@ const InvokeTabs = () => {
|
||||
<Panel id="main" order={0} minSize={50}>
|
||||
<Flex w="full" h="full" gap={4}>
|
||||
{!NO_SIDE_PANEL_TABS.includes(activeTabName) && (
|
||||
<Flex h="full" w={434} flexShrink={0}>
|
||||
<Flex h="full" w={OPTIONS_PANEL_WIDTH} flexShrink={0}>
|
||||
{activeTabName === 'nodes' ? (
|
||||
<NodeEditorPanelGroup />
|
||||
) : (
|
||||
|
Loading…
Reference in New Issue
Block a user