diff --git a/src/components/Elements/MainModal/scss/index.scss b/src/components/Elements/MainModal/scss/index.scss index 6ce7cc93..c7b49a7b 100644 --- a/src/components/Elements/MainModal/scss/index.scss +++ b/src/components/Elements/MainModal/scss/index.scss @@ -292,6 +292,7 @@ h5 { flex-flow: row; align-items: center; gap: 25px; + flex-grow: 0; svg { @include themed { diff --git a/src/features/background/options/BackgroundOptions.jsx b/src/features/background/options/BackgroundOptions.jsx index 3ccb9bff..74c3e3f9 100644 --- a/src/features/background/options/BackgroundOptions.jsx +++ b/src/features/background/options/BackgroundOptions.jsx @@ -3,7 +3,7 @@ import variables from 'config/variables'; import { useState, useEffect } from 'react'; import { MdSource, MdOutlineKeyboardArrowRight, MdOutlineAutoAwesome } from 'react-icons/md'; -import { Header, PreferencesWrapper } from 'components/Layout/Settings'; +import { Header, PreferencesWrapper, Section } from 'components/Layout/Settings'; import { Checkbox, Dropdown, Slider, Radio, Text, ChipSelect } from 'components/Form/Settings'; import { Row, Content, Action } from 'components/Layout/Settings/Item'; //import Text from 'components/Form/Settings/Text/Text'; @@ -13,10 +13,13 @@ import CustomSettings from './Custom'; import values from 'utils/data/slider_values.json'; import { APIQualityOptions, backgroundImageEffects, getBackgroundOptionItems } from './optionTypes'; +import { useTab } from 'components/Elements/MainModal/backend/TabContext'; import defaults from './default'; function BackgroundOptions() { + const { subSection } = useTab(); + const [backgroundType, setBackgroundType] = useState( localStorage.getItem('backgroundType') || defaults.backgroundType, ); @@ -37,7 +40,7 @@ function BackgroundOptions() { useEffect(() => { return () => { controller.abort(); - } + }; }, []); async function getBackgroundCategories() { @@ -229,9 +232,9 @@ function BackgroundOptions() { return ( <> {header} - {backgroundSettingsSection !== true && effects !== true ? ( + {subSection === '' ? ( <> -