Skip to content

Commit 7ea89d6

Browse files
committed
fix(settings): style selects
1 parent b902def commit 7ea89d6

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

components/ProfileMenu.vue

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,26 @@ const { data: user } = useCurrentUser();
227227
<label class="flex items-center justify-between gap-4 self-center">
228228
<span>{{ $t("profile.select-language") }}</span>
229229
<div
230-
class="type-title-2 min-w-[100px] rounded-lg bg-background-1 px-2 py-1.5 text-label-1 shadow-[0_4px_12px_0_#0000000D,0_1px_4px_0_#0000000D,0_0_0_1px_#0000000D]"
230+
class="type-title-2 relative min-w-[100px] rounded-lg bg-background-1 px-2 py-1.5 text-label-1 shadow-[0_4px_12px_0_#0000000D,0_1px_4px_0_#0000000D,0_0_0_1px_#0000000D]"
231231
>
232-
<select v-model="profileStore.uiLanguage" class="py-1">
232+
<select
233+
v-model="profileStore.uiLanguage"
234+
class="appearance-none truncate bg-background-1 py-0.5 pl-1 pr-5 leading-normal"
235+
>
233236
<option
234-
v-for="(lang, i) in $i18n.availableLocales"
235-
:key="`Lang${i}`"
237+
v-for="lang in $i18n.availableLocales"
238+
:key="lang"
236239
:value="lang"
237240
>
238241
{{ getLocalizedLanguageName(lang) }} ({{
239242
getLocalizedLanguageName(lang, true)
240243
}})
241244
</option>
242245
</select>
246+
<NuxtIcon
247+
name="icon.chevron.down"
248+
class="absolute right-2 top-1/2 -translate-y-1/2"
249+
/>
243250
</div>
244251
</label>
245252
</div>
@@ -279,24 +286,31 @@ const { data: user } = useCurrentUser();
279286
{{ t("profile.preference-language-" + Math.min(i + 1, 4), i + 1) }}
280287
</div>
281288
<div
282-
class="type-title-2 min-w-min rounded-lg bg-background-1 px-2 py-1.5 text-label-1 shadow-[0_4px_12px_0_#0000000D,0_1px_4px_0_#0000000D,0_0_0_1px_#0000000D]"
289+
class="type-title-2 relative min-w-min rounded-lg bg-background-1 px-2 py-1.5 text-label-1 shadow-[0_4px_12px_0_#0000000D,0_1px_4px_0_#0000000D,0_0_0_1px_#0000000D]"
283290
>
284-
<select v-model="contentLanguages[i]" class="w-full py-1">
291+
<select
292+
v-model="contentLanguages[i]"
293+
class="w-full appearance-none truncate bg-background-1 py-0.5 pl-1 pr-5 leading-normal"
294+
>
285295
<option
286296
v-for="(lang, j) in [
287297
item,
288298
...availableContentLanguages.filter(
289299
(x) => !contentLanguages.includes(x),
290300
),
291301
]"
292-
:key="`Lang${j}`"
302+
:key="lang"
293303
:value="lang"
294304
>
295305
{{ getLocalizedLanguageName(lang) }} ({{
296306
getLocalizedLanguageName(lang, true)
297307
}})
298308
</option>
299309
</select>
310+
<NuxtIcon
311+
name="icon.chevron.down"
312+
class="absolute right-2 top-1/2 -translate-y-1/2"
313+
/>
300314
</div>
301315

302316
<button

0 commit comments

Comments
 (0)