mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: tweak parameter options spacing
This commit is contained in:
parent
176d41d624
commit
9afc909ff0
@ -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';
|
||||||
|
@ -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 />
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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 />}
|
||||||
|
@ -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>
|
||||||
|
@ -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'}>
|
||||||
|
@ -37,6 +37,8 @@ const SDXLImageToImageTabCoreParameters = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 3,
|
gap: 3,
|
||||||
|
px: 2,
|
||||||
|
pb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shouldUseSliders ? (
|
{shouldUseSliders ? (
|
||||||
|
@ -35,6 +35,8 @@ const SDXLUnifiedCanvasTabCoreParameters = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 3,
|
gap: 3,
|
||||||
|
px: 2,
|
||||||
|
pb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shouldUseSliders ? (
|
{shouldUseSliders ? (
|
||||||
|
@ -37,6 +37,8 @@ const ImageToImageTabCoreParameters = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 3,
|
gap: 3,
|
||||||
|
px: 2,
|
||||||
|
pb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shouldUseSliders ? (
|
{shouldUseSliders ? (
|
||||||
|
@ -34,6 +34,8 @@ const TextToImageTabCoreParameters = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 3,
|
gap: 3,
|
||||||
|
px: 2,
|
||||||
|
pb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shouldUseSliders ? (
|
{shouldUseSliders ? (
|
||||||
|
@ -35,6 +35,8 @@ const UnifiedCanvasCoreParameters = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 3,
|
gap: 3,
|
||||||
|
px: 2,
|
||||||
|
pb: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shouldUseSliders ? (
|
{shouldUseSliders ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user