ui: tweak parameter options spacing

This commit is contained in:
blessedcoolant 2023-08-30 05:22:44 +12:00
parent 176d41d624
commit 9afc909ff0
12 changed files with 19 additions and 9 deletions

View File

@ -6,11 +6,11 @@ import {
configureStore, configureStore,
} from '@reduxjs/toolkit'; } from '@reduxjs/toolkit';
import canvasReducer from 'features/canvas/store/canvasSlice'; import canvasReducer from 'features/canvas/store/canvasSlice';
import changeBoardModalReducer from 'features/changeBoardModal/store/slice';
import controlNetReducer from 'features/controlNet/store/controlNetSlice'; import controlNetReducer from 'features/controlNet/store/controlNetSlice';
import deleteImageModalReducer from 'features/deleteImageModal/store/slice';
import dynamicPromptsReducer from 'features/dynamicPrompts/store/dynamicPromptsSlice'; import dynamicPromptsReducer from 'features/dynamicPrompts/store/dynamicPromptsSlice';
import galleryReducer from 'features/gallery/store/gallerySlice'; import galleryReducer from 'features/gallery/store/gallerySlice';
import deleteImageModalReducer from 'features/deleteImageModal/store/slice';
import changeBoardModalReducer from 'features/changeBoardModal/store/slice';
import loraReducer from 'features/lora/store/loraSlice'; import loraReducer from 'features/lora/store/loraSlice';
import nodesReducer from 'features/nodes/store/nodesSlice'; import nodesReducer from 'features/nodes/store/nodesSlice';
import generationReducer from 'features/parameters/store/generationSlice'; import generationReducer from 'features/parameters/store/generationSlice';

View File

@ -32,7 +32,7 @@ const ParamDynamicPromptsCollapse = () => {
return ( return (
<IAICollapse label="Dynamic Prompts" activeLabel={activeLabel}> <IAICollapse label="Dynamic Prompts" activeLabel={activeLabel}>
<Flex sx={{ gap: 2, flexDir: 'column', pb: 2 }}> <Flex sx={{ gap: 2, flexDir: 'column', pb: 2, px: 2 }}>
<ParamDynamicPromptsToggle /> <ParamDynamicPromptsToggle />
<ParamDynamicPromptsCombinatorial /> <ParamDynamicPromptsCombinatorial />
<ParamDynamicPromptsMaxPrompts /> <ParamDynamicPromptsMaxPrompts />

View File

@ -32,7 +32,7 @@ const ParamLoraCollapse = () => {
return ( return (
<IAICollapse label="LoRA" activeLabel={activeLabel}> <IAICollapse label="LoRA" activeLabel={activeLabel}>
<Flex sx={{ flexDir: 'column', gap: 2 }}> <Flex sx={{ flexDir: 'column', gap: 2, px: 2, pb: 2 }}>
<ParamLoRASelect /> <ParamLoRASelect />
<ParamLoraList /> <ParamLoraList />
</Flex> </Flex>

View File

@ -29,7 +29,7 @@ export default function ParamAdvancedCollapse() {
return ( return (
<IAICollapse label="Advanced" activeLabel={activeLabel}> <IAICollapse label="Advanced" activeLabel={activeLabel}>
<Flex sx={{ flexDir: 'column', gap: 2 }}> <Flex sx={{ flexDir: 'column', gap: 2, px: 2, pb: 2 }}>
<ParamClipSkip /> <ParamClipSkip />
</Flex> </Flex>
</IAICollapse> </IAICollapse>

View File

@ -42,7 +42,7 @@ const ParamNoiseCollapse = () => {
label={t('parameters.noiseSettings')} label={t('parameters.noiseSettings')}
activeLabel={activeLabel} activeLabel={activeLabel}
> >
<Flex sx={{ gap: 2, flexDirection: 'column' }}> <Flex sx={{ gap: 2, flexDirection: 'column', px: 2, pb: 2 }}>
<ParamNoiseToggle /> <ParamNoiseToggle />
<ParamCpuNoiseToggle /> <ParamCpuNoiseToggle />
{isPerlinNoiseEnabled && <ParamPerlinNoise />} {isPerlinNoiseEnabled && <ParamPerlinNoise />}

View File

@ -50,7 +50,7 @@ const ParamSeamlessCollapse = () => {
label={t('parameters.seamlessTiling')} label={t('parameters.seamlessTiling')}
activeLabel={activeLabel} activeLabel={activeLabel}
> >
<Flex sx={{ gap: 5 }}> <Flex sx={{ gap: 5, px: 2 }}>
<Box flexGrow={1}> <Box flexGrow={1}>
<ParamSeamlessXAxis /> <ParamSeamlessXAxis />
</Box> </Box>

View File

@ -4,6 +4,7 @@ import { stateSelector } from 'app/store/store';
import { useAppSelector } from 'app/store/storeHooks'; import { useAppSelector } from 'app/store/storeHooks';
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions'; import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
import IAICollapse from 'common/components/IAICollapse'; import IAICollapse from 'common/components/IAICollapse';
import { memo } from 'react';
import ParamSDXLRefinerCFGScale from './SDXLRefiner/ParamSDXLRefinerCFGScale'; import ParamSDXLRefinerCFGScale from './SDXLRefiner/ParamSDXLRefinerCFGScale';
import ParamSDXLRefinerModelSelect from './SDXLRefiner/ParamSDXLRefinerModelSelect'; import ParamSDXLRefinerModelSelect from './SDXLRefiner/ParamSDXLRefinerModelSelect';
import ParamSDXLRefinerNegativeAestheticScore from './SDXLRefiner/ParamSDXLRefinerNegativeAestheticScore'; import ParamSDXLRefinerNegativeAestheticScore from './SDXLRefiner/ParamSDXLRefinerNegativeAestheticScore';
@ -12,7 +13,6 @@ import ParamSDXLRefinerScheduler from './SDXLRefiner/ParamSDXLRefinerScheduler';
import ParamSDXLRefinerStart from './SDXLRefiner/ParamSDXLRefinerStart'; import ParamSDXLRefinerStart from './SDXLRefiner/ParamSDXLRefinerStart';
import ParamSDXLRefinerSteps from './SDXLRefiner/ParamSDXLRefinerSteps'; import ParamSDXLRefinerSteps from './SDXLRefiner/ParamSDXLRefinerSteps';
import ParamUseSDXLRefiner from './SDXLRefiner/ParamUseSDXLRefiner'; import ParamUseSDXLRefiner from './SDXLRefiner/ParamUseSDXLRefiner';
import { memo } from 'react';
const selector = createSelector( const selector = createSelector(
stateSelector, stateSelector,
@ -32,7 +32,7 @@ const ParamSDXLRefinerCollapse = () => {
return ( return (
<IAICollapse label="Refiner" activeLabel={activeLabel}> <IAICollapse label="Refiner" activeLabel={activeLabel}>
<Flex sx={{ gap: 2, flexDir: 'column' }}> <Flex sx={{ gap: 2, flexDir: 'column', px: 2, pb: 2 }}>
<ParamUseSDXLRefiner /> <ParamUseSDXLRefiner />
<ParamSDXLRefinerModelSelect /> <ParamSDXLRefinerModelSelect />
<Flex gap={2} flexDirection={shouldUseSliders ? 'column' : 'row'}> <Flex gap={2} flexDirection={shouldUseSliders ? 'column' : 'row'}>

View File

@ -37,6 +37,8 @@ const SDXLImageToImageTabCoreParameters = () => {
sx={{ sx={{
flexDirection: 'column', flexDirection: 'column',
gap: 3, gap: 3,
px: 2,
pb: 2,
}} }}
> >
{shouldUseSliders ? ( {shouldUseSliders ? (

View File

@ -35,6 +35,8 @@ const SDXLUnifiedCanvasTabCoreParameters = () => {
sx={{ sx={{
flexDirection: 'column', flexDirection: 'column',
gap: 3, gap: 3,
px: 2,
pb: 2,
}} }}
> >
{shouldUseSliders ? ( {shouldUseSliders ? (

View File

@ -37,6 +37,8 @@ const ImageToImageTabCoreParameters = () => {
sx={{ sx={{
flexDirection: 'column', flexDirection: 'column',
gap: 3, gap: 3,
px: 2,
pb: 2,
}} }}
> >
{shouldUseSliders ? ( {shouldUseSliders ? (

View File

@ -34,6 +34,8 @@ const TextToImageTabCoreParameters = () => {
sx={{ sx={{
flexDirection: 'column', flexDirection: 'column',
gap: 3, gap: 3,
px: 2,
pb: 2,
}} }}
> >
{shouldUseSliders ? ( {shouldUseSliders ? (

View File

@ -35,6 +35,8 @@ const UnifiedCanvasCoreParameters = () => {
sx={{ sx={{
flexDirection: 'column', flexDirection: 'column',
gap: 3, gap: 3,
px: 2,
pb: 2,
}} }}
> >
{shouldUseSliders ? ( {shouldUseSliders ? (