fix: icon breakage
This commit is contained in:
6 files changed
+47
-101
No files matched your search
@@ -60,9 +60,7 @@
|
||||
this={!settings.expandImages || type != 'image' ? 'a' : 'button'}
|
||||
href={postLink(post)}
|
||||
onclick={() => {
|
||||
if (type == 'image') {
|
||||
showImage(bestImageURL(post, false, -1))
|
||||
}
|
||||
if (type == 'image') showImage(bestImageURL(post, false, -1))
|
||||
}}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
@@ -109,7 +107,7 @@
|
||||
<div
|
||||
class={[
|
||||
'absolute w-8 h-8 m-1 bottom-0 left-0 rounded-xl text-slate-800 dark:text-zinc-200',
|
||||
'bg-slate-25 dark:bg-zinc-900 border border-slate-200 dark:border-zinc-700',
|
||||
'bg-slate-25 dark:bg-zinc-900',
|
||||
'grid place-items-center',
|
||||
]}
|
||||
>
|
||||
@@ -138,8 +136,8 @@
|
||||
<div
|
||||
class={[
|
||||
'object-cover overflow-hidden bg-slate-50 dark:bg-zinc-900 rounded-xl',
|
||||
'border border-slate-200 dark:border-zinc-800 group-hover/media:border-slate-400',
|
||||
'dark:group-hover/media:border-zinc-600 transition-colors text-slate-400 dark:text-zinc-600 grid',
|
||||
'border border-slate-200 dark:border-zinc-800',
|
||||
'transition-colors text-slate-400 dark:text-zinc-600 grid',
|
||||
'place-items-center',
|
||||
size,
|
||||
]}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user