diff --git a/src/components/color_input/color_input.scss b/src/components/color_input/color_input.scss index 3128381f5..fad2bfca7 100644 --- a/src/components/color_input/color_input.scss +++ b/src/components/color_input/color_input.scss @@ -1,18 +1,27 @@ .color-input { display: inline-flex; + flex-wrap: wrap; + max-width: 10em; + + &.-compact { + max-width: none; + } .label { flex: 1 1 auto; + grid-area: label; } .opt { + grid-area: checkbox; margin-right: 0.5em; } &-field.input { - display: inline-flex; - flex: 0 0 0; - max-width: 9em; + flex: 1 1 10em; + max-width: 10em; + grid-area: input; + display: flex; align-items: stretch; input { diff --git a/src/components/color_input/color_input.vue b/src/components/color_input/color_input.vue index 266ad4d4e..58aee575c 100644 --- a/src/components/color_input/color_input.vue +++ b/src/components/color_input/color_input.vue @@ -1,7 +1,7 @@ diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue index 041219feb..19de233d7 100644 --- a/src/components/opacity_input/opacity_input.vue +++ b/src/components/opacity_input/opacity_input.vue @@ -8,7 +8,7 @@ class="label" :class="{ faint: !present || disabled }" > - {{ label }} + {{ label || $t('settings.style.themes3.editor.opacity') }} - updatePalette(key, value)" - /> - - - {{ $t('settings.style.themes3.palette.import') }} - - - - {{ $t('settings.style.themes3.palette.export') }} - - - {{ $t('settings.style.themes3.palette.apply') }} - + + updatePalette(key, value)" + /> + + + + + {{ $t('settings.style.themes3.palette.import') }} + + + + {{ $t('settings.style.themes3.palette.export') }} + + + + + {{ $t('settings.style.themes3.palette.apply') }} + +