logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 1866dcfdc206d7aa0d09ccefe05333db67f4a4d4
parent 40c9163d215b5ac7b69437f3585586b2174211ca
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 17 Jul 2024 17:26:03 +0300

fix checkbox in preview

Diffstat:

Msrc/components/settings_modal/tabs/theme_tab/preview.vue21+++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/components/settings_modal/tabs/theme_tab/preview.vue b/src/components/settings_modal/tabs/theme_tab/preview.vue @@ -99,15 +99,9 @@ > <div class="actions"> - <span class="checkbox"> - <input - id="preview_checkbox" - checked="very yes" - type="checkbox" - class="input" - > - <label for="preview_checkbox">{{ $t('settings.style.preview.checkbox') }}</label> - </span> + <Checkbox> + {{ $t('settings.style.preview.checkbox') }} + </Checkbox> <button class="btn button-default"> {{ $t('settings.style.preview.button') }} </button> @@ -118,6 +112,7 @@ </template> <script> +import Checkbox from 'src/components/checkbox/checkbox.vue' import { library } from '@fortawesome/fontawesome-svg-core' import { faTimes, @@ -133,7 +128,11 @@ library.add( faReply ) -export default {} +export default { + components: { + Checkbox + } +} </script> <style lang="scss"> @@ -224,8 +223,6 @@ export default {} align-items: baseline; .checkbox { - display: inline-flex; - align-items: baseline; margin-right: 1em; flex: 1; }