diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-05-31 11:08:56 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2021-05-31 11:08:56 +0000 |
| commit | 4e96af044224dc10b8cc4eb270e025f1b8a1d29a (patch) | |
| tree | f713351d5e034f6b67fe51ece81c27af7dca1dae /src/components/font_control/font_control.vue | |
| parent | dc611dffdbf8f24c10caa7651651efbff1acfe67 (diff) | |
| parent | c03965646027bc8ce2d4c083ea3fd0423233fa18 (diff) | |
Merge branch 'better-selects' into 'develop'
Better <select> components
See merge request pleroma/pleroma-fe!1373
Diffstat (limited to 'src/components/font_control/font_control.vue')
| -rw-r--r-- | src/components/font_control/font_control.vue | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/src/components/font_control/font_control.vue b/src/components/font_control/font_control.vue index dd117ec0..29605084 100644 --- a/src/components/font_control/font_control.vue +++ b/src/components/font_control/font_control.vue @@ -22,30 +22,20 @@ class="opt-l" :for="name + '-o'" /> - <label - :for="name + '-font-switcher'" - class="select" + <Select + :id="name + '-font-switcher'" + v-model="preset" :disabled="!present" + class="font-switcher" > - <select - :id="name + '-font-switcher'" - v-model="preset" - :disabled="!present" - class="font-switcher" + <option + v-for="option in availableOptions" + :key="option" + :value="option" > - <option - v-for="option in availableOptions" - :key="option" - :value="option" - > - {{ option === 'custom' ? $t('settings.style.fonts.custom') : option }} - </option> - </select> - <FAIcon - class="select-down-icon" - icon="chevron-down" - /> - </label> + {{ option === 'custom' ? $t('settings.style.fonts.custom') : option }} + </option> + </Select> <input v-if="isCustom" :id="name" @@ -65,7 +55,8 @@ min-width: 10em; } &.custom { - .select { + /* TODO Should make proper joiners... */ + .font-switcher { border-top-right-radius: 0; border-bottom-right-radius: 0; } |
