fix: icon breakage

This commit is contained in:
James Xylight committed 2025-08-03 16:31:41 -07:00
1 parent 9f8e0e8a99
commit eefe9af3a8
6 files changed
+47 -101

No files matched your search

+38 -42
View File
@@ -230,18 +230,16 @@
{#if env.PUBLIC_XYLIGHT_MODE}
<Setting icon={Heart}>
{#snippet title()}
<span class="dark:text-pink-400 text-pink-600 font-medium">
<span class="dark:text-pink-400 text-pink-600">
{$t('nav.menu.donate')}
</span>
{/snippet}
{#snippet description()}
<p class="max-w-xl">
{$t('settings.donate.description')}
</p>
{$t('settings.donate.description')}
{/snippet}
<Button
color="none"
class="dark:bg-pink-400 bg-pink-600 text-white dark:text-black"
class="bg-gradient-to-r dark:from-pink-400 dark:to-fuchsia-400 from-pink-600 to-red-600 text-white dark:text-black"
href="https://buymeacoffee.com/xylight"
target="_blank"
rounding="xl"
@@ -253,44 +251,42 @@
</Button>
</Setting>
{/if}
<li class="flex flex-col gap-2">
<Setting icon={Language}>
{#snippet title()}
{$t('settings.app.lang.title')}
{/snippet}
{#snippet description()}
<p>
{$t('settings.app.lang.description')}
<Link href="/translators" highlight class="text-base font-semibold">
{$t('settings.app.lang.credits')}
</Link>
</p>
{/snippet}
<!--@ts-ignore-->
<Select bind:value={settings.language}>
<Option icon={Language} value={null}>
{$t('settings.app.lang.auto')}
<Setting icon={Language}>
{#snippet title()}
{$t('settings.app.lang.title')}
{/snippet}
{#snippet description()}
<p>
{$t('settings.app.lang.description')}
<Link href="/translators" highlight class="text-base font-semibold">
{$t('settings.app.lang.credits')}
</Link>
</p>
{/snippet}
<!--@ts-ignore-->
<Select bind:value={settings.language}>
<Option icon={Language} value={null}>
{$t('settings.app.lang.auto')}
</Option>
{#each $locales as locale (locale)}
{@const mapped = localeMap.get(locale) ?? {
flag: '',
translated: 1,
name: locale,
}}
<Option value={locale}>
{mapped?.flag}
{mapped?.name}
</Option>
{#each $locales as locale (locale)}
{@const mapped = localeMap.get(locale) ?? {
flag: '',
translated: 1,
name: locale,
}}
<Option value={locale}>
{mapped?.flag}
{mapped?.name}
</Option>
{/each}
</Select>
</Setting>
{#if $locale == 'he' || $locale == 'ar'}
<ToggleSetting
bind:checked={settings.useRtl}
title={$t('settings.app.lang.useRtl.title')}
></ToggleSetting>
{/if}
</li>
{/each}
</Select>
</Setting>
{#if $locale == 'he' || $locale == 'ar'}
<ToggleSetting
bind:checked={settings.useRtl}
title={$t('settings.app.lang.useRtl.title')}
></ToggleSetting>
{/if}
<Setting icon={ViewColumns}>
{#snippet title()}
<span>{$t('settings.app.view.title')}</span>
+2 -2
View File
@@ -91,12 +91,12 @@
{@render title?.()}
</h2>
{#if description}
<p
<div
class="text-slate-600 dark:text-zinc-400 text-sm"
style="grid-area: description; place-self: start start;"
>
{@render description?.()}
</p>
</div>
{/if}
{#if children}
<div
-48
View File
@@ -1,48 +0,0 @@
<script lang="ts">
import { profile } from '$lib/auth.svelte'
import Portal from 'mono-svelte/popover/Portal.svelte'
import { onDestroy, onMount } from 'svelte'
let audio = $state<HTMLAudioElement>()
onMount(() => {
audio?.play()
document.body.style.rotate = `5deg`
document.body.style.transition = 'rotate 1s linear'
})
onDestroy(() => {
document.body.style.rotate = ''
})
</script>
<audio bind:this={audio}>
<source src="/other/mc.mp3" type="audio/mpeg" />
</audio>
<Portal class="z-50 fixed inset-0">
<div
class="inset-0 bg-red-500/20 w-screen h-screen flex flex-col gap-4 items-center p-16 z-50"
style="rotate: -5deg; transition: rotate 1s linear;"
>
<div class="bg-black/20 font-mono fixed left-1/2 -translate-x-1/2">
<p>{profile.current.username ?? 'You'} was slain by Command Palette</p>
</div>
<img
src="/other/mc.png"
class="object-contain w-full h-full"
alt="Minecraft 'you died'"
/>
</div>
</Portal>
<style>
@font-face {
font-family: 'mc';
src: url('/other/mc.otf') format('opentype');
}
.main {
font-family: 'mc';
}
</style>