fix states not showing, move palette out of the way

This commit is contained in:
Henry Jameson 2024-10-03 00:53:50 +03:00
parent dee3cf7883
commit 20e6382df6

View file

@ -51,32 +51,6 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="setting-item palette-editor">
<div class="label">
<label for="palette-selector">
{{ $t('settings.style.themes3.palette.label') }}
{{ ' ' }}
</label>
<Select
id="palette-selector"
v-model="editedPalette"
>
<option
key="dark"
value="dark"
>
{{ $t('settings.style.themes3.palette.dark') }}
</option>
<option
key="light"
value="light"
>
{{ $t('settings.style.themes3.palette.light') }}
</option>
</Select>
</div>
<PaletteEditor v-model="palette" />
</div>
<div class="setting-item component-editor"> <div class="setting-item component-editor">
<div class="component-selector"> <div class="component-selector">
<label for="component-selector"> <label for="component-selector">
@ -126,11 +100,11 @@
class="state-selector-list" class="state-selector-list"
> >
<li <li
v-for="state in selectedStates" v-for="state in selectedComponentStates"
:key="'component-variant-' + state" :key="'component-state-' + state"
> >
<Checkbox <Checkbox
:value="selectedStates.has(state)" :value="selectedState.has(state)"
@update:modelValue="(v) => updateSelectedStates(state, v)" @update:modelValue="(v) => updateSelectedStates(state, v)"
> >
{{ fallbackI18n($t(getStatePath(selectedComponentName, state)), state) }} {{ fallbackI18n($t(getStatePath(selectedComponentName, state)), state) }}
@ -276,6 +250,32 @@
</div> </div>
</tab-switcher> </tab-switcher>
</div> </div>
<div class="setting-item palette-editor">
<div class="label">
<label for="palette-selector">
{{ $t('settings.style.themes3.palette.label') }}
{{ ' ' }}
</label>
<Select
id="palette-selector"
v-model="editedPalette"
>
<option
key="dark"
value="dark"
>
{{ $t('settings.style.themes3.palette.dark') }}
</option>
<option
key="light"
value="light"
>
{{ $t('settings.style.themes3.palette.light') }}
</option>
</Select>
</div>
<PaletteEditor v-model="palette" />
</div>
</div> </div>
</template> </template>