misc: hide already added languages

This commit is contained in:
James Xylight committed 2025-02-08 13:49:19 -08:00
1 parent 98cb1992d2
commit 6334890530
4 files changed
+11 -10

No files matched your search

+5 -5
View File
@@ -65,16 +65,16 @@
</script>
<div
class="border rounded-full border-slate-200 dark:border-zinc-800 bg-slate-50 dark:bg-zinc-950 p-1 flex items-center gap-1"
class="border rounded-full border-slate-200 dark:border-zinc-800 bg-slate-50 dark:bg-zinc-950 p-1 flex items-center gap-1 w-max max-w-full z-0 relative overflow-auto"
>
{#each options as option, index}
{@const slctd = selected == option}
<button
class={[
'px-3 py-1 rounded-full text-sm font-medium transition-colors duration-75',
'px-3 py-1 rounded-full text-sm font-medium transition-colors duration-75 relative',
slctd
? 'bg-primary-900 dark:bg-primary-100 text-slate-50 dark:text-zinc-900'
: 'dark:bg-zinc-900/75 bg-white',
: 'dark:bg-zinc-900/50 bg-white',
]}
onclick={(e) => {
e.preventDefault()
@@ -84,9 +84,9 @@
type="button"
>
{optionNames[index] || option}
{#if headless && option == selected}
{#if slctd}
<div
class="absolute -bottom-1 left-0 w-full border-b-2 rounded-t-sm border-black dark:border-white"
class="absolute left-0 top-0 w-full h-full blur-xl scale-75 opacity-50 dark:bg-primary-100 -z-10"
></div>
{/if}
</button>