ui: Simply collapse spacing

This commit is contained in:
blessedcoolant 2023-08-30 08:40:17 +12:00
parent 171a0eaf51
commit 8d4caaabb0
14 changed files with 10 additions and 20 deletions

View File

@ -86,8 +86,8 @@ const IAICollapse = (props: IAIToggleCollapseProps) => {
<Collapse in={isOpen} animateOpacity style={{ overflow: 'unset' }}>
<Box
sx={{
p: 2,
pt: 3,
p: 4,
pb: 4,
borderBottomRadius: 'base',
bg: 'base.150',
_dark: {

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ const ParamInfillCollapse = () => {
return (
<IAICollapse label={t('parameters.infillScalingHeader')}>
<Flex sx={{ gap: 2, flexDirection: 'column', pb: 2 }}>
<Flex sx={{ gap: 2, flexDirection: 'column' }}>
<SubParametersWrapper>
<ParamInfillMethod />
<ParamInfillTilesize />

View File

@ -69,7 +69,7 @@ const ParamControlNetCollapse = () => {
return (
<IAICollapse label="ControlNet" activeLabel={activeLabel}>
<Flex sx={{ flexDir: 'column', gap: 2, pb: 1 }}>
<Flex sx={{ flexDir: 'column', gap: 2 }}>
<Flex
sx={{
w: '100%',

View File

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

View File

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

View File

@ -32,7 +32,7 @@ const ParamSDXLRefinerCollapse = () => {
return (
<IAICollapse label="Refiner" activeLabel={activeLabel}>
<Flex sx={{ gap: 2, flexDir: 'column', px: 2, pb: 2 }}>
<Flex sx={{ gap: 2, flexDir: 'column' }}>
<ParamUseSDXLRefiner />
<ParamSDXLRefinerModelSelect />
<Flex gap={2} flexDirection={shouldUseSliders ? 'column' : 'row'}>

View File

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

View File

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

View File

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

View File

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

View File

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