fix: icon breakage
This commit is contained in:
6 files changed
+47
-101
No files matched your search
+3
-3
@@ -17,14 +17,14 @@
|
|||||||
"@tailwindcss/postcss": "^4.1.8",
|
"@tailwindcss/postcss": "^4.1.8",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@types/ua-parser-js": "^0.7.39",
|
"@types/ua-parser-js": "^0.7.39",
|
||||||
"@xylightdev/svelte-hero-icons": "^2.2.4",
|
"@xylightdev/svelte-hero-icons": "link:@xylightdev/svelte-hero-icons",
|
||||||
"eslint": "^9.28.0",
|
"eslint": "^9.28.0",
|
||||||
"eslint-plugin-svelte": "^3.11.0",
|
"eslint-plugin-svelte": "^3.11.0",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
"lemmy-js-client": "0.19.11-donation-dialog.1",
|
"lemmy-js-client": "0.19.11-donation-dialog.1",
|
||||||
"linkify-it": "^5.0.0",
|
"linkify-it": "^5.0.0",
|
||||||
"marked": "^16.1.1",
|
"marked": "7.0.5",
|
||||||
"marked-linkify-it": "^3.1.10",
|
"marked-linkify-it": "^3.1.13",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"postcss": "^8.4.30",
|
"postcss": "^8.4.30",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
|
|||||||
@@ -60,9 +60,7 @@
|
|||||||
this={!settings.expandImages || type != 'image' ? 'a' : 'button'}
|
this={!settings.expandImages || type != 'image' ? 'a' : 'button'}
|
||||||
href={postLink(post)}
|
href={postLink(post)}
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
if (type == 'image') {
|
if (type == 'image') showImage(bestImageURL(post, false, -1))
|
||||||
showImage(bestImageURL(post, false, -1))
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -109,7 +107,7 @@
|
|||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
'absolute w-8 h-8 m-1 bottom-0 left-0 rounded-xl text-slate-800 dark:text-zinc-200',
|
'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',
|
'grid place-items-center',
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
@@ -138,8 +136,8 @@
|
|||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
'object-cover overflow-hidden bg-slate-50 dark:bg-zinc-900 rounded-xl',
|
'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',
|
'border border-slate-200 dark:border-zinc-800',
|
||||||
'dark:group-hover/media:border-zinc-600 transition-colors text-slate-400 dark:text-zinc-600 grid',
|
'transition-colors text-slate-400 dark:text-zinc-600 grid',
|
||||||
'place-items-center',
|
'place-items-center',
|
||||||
size,
|
size,
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -230,18 +230,16 @@
|
|||||||
{#if env.PUBLIC_XYLIGHT_MODE}
|
{#if env.PUBLIC_XYLIGHT_MODE}
|
||||||
<Setting icon={Heart}>
|
<Setting icon={Heart}>
|
||||||
{#snippet title()}
|
{#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')}
|
{$t('nav.menu.donate')}
|
||||||
</span>
|
</span>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#snippet description()}
|
{#snippet description()}
|
||||||
<p class="max-w-xl">
|
{$t('settings.donate.description')}
|
||||||
{$t('settings.donate.description')}
|
|
||||||
</p>
|
|
||||||
{/snippet}
|
{/snippet}
|
||||||
<Button
|
<Button
|
||||||
color="none"
|
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"
|
href="https://buymeacoffee.com/xylight"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rounding="xl"
|
rounding="xl"
|
||||||
@@ -253,44 +251,42 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Setting>
|
</Setting>
|
||||||
{/if}
|
{/if}
|
||||||
<li class="flex flex-col gap-2">
|
<Setting icon={Language}>
|
||||||
<Setting icon={Language}>
|
{#snippet title()}
|
||||||
{#snippet title()}
|
{$t('settings.app.lang.title')}
|
||||||
{$t('settings.app.lang.title')}
|
{/snippet}
|
||||||
{/snippet}
|
{#snippet description()}
|
||||||
{#snippet description()}
|
<p>
|
||||||
<p>
|
{$t('settings.app.lang.description')}
|
||||||
{$t('settings.app.lang.description')}
|
<Link href="/translators" highlight class="text-base font-semibold">
|
||||||
<Link href="/translators" highlight class="text-base font-semibold">
|
{$t('settings.app.lang.credits')}
|
||||||
{$t('settings.app.lang.credits')}
|
</Link>
|
||||||
</Link>
|
</p>
|
||||||
</p>
|
{/snippet}
|
||||||
{/snippet}
|
<!--@ts-ignore-->
|
||||||
<!--@ts-ignore-->
|
<Select bind:value={settings.language}>
|
||||||
<Select bind:value={settings.language}>
|
<Option icon={Language} value={null}>
|
||||||
<Option icon={Language} value={null}>
|
{$t('settings.app.lang.auto')}
|
||||||
{$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>
|
</Option>
|
||||||
{#each $locales as locale (locale)}
|
{/each}
|
||||||
{@const mapped = localeMap.get(locale) ?? {
|
</Select>
|
||||||
flag: '',
|
</Setting>
|
||||||
translated: 1,
|
{#if $locale == 'he' || $locale == 'ar'}
|
||||||
name: locale,
|
<ToggleSetting
|
||||||
}}
|
bind:checked={settings.useRtl}
|
||||||
<Option value={locale}>
|
title={$t('settings.app.lang.useRtl.title')}
|
||||||
{mapped?.flag}
|
></ToggleSetting>
|
||||||
{mapped?.name}
|
{/if}
|
||||||
</Option>
|
|
||||||
{/each}
|
|
||||||
</Select>
|
|
||||||
</Setting>
|
|
||||||
{#if $locale == 'he' || $locale == 'ar'}
|
|
||||||
<ToggleSetting
|
|
||||||
bind:checked={settings.useRtl}
|
|
||||||
title={$t('settings.app.lang.useRtl.title')}
|
|
||||||
></ToggleSetting>
|
|
||||||
{/if}
|
|
||||||
</li>
|
|
||||||
<Setting icon={ViewColumns}>
|
<Setting icon={ViewColumns}>
|
||||||
{#snippet title()}
|
{#snippet title()}
|
||||||
<span>{$t('settings.app.view.title')}</span>
|
<span>{$t('settings.app.view.title')}</span>
|
||||||
|
|||||||
@@ -91,12 +91,12 @@
|
|||||||
{@render title?.()}
|
{@render title?.()}
|
||||||
</h2>
|
</h2>
|
||||||
{#if description}
|
{#if description}
|
||||||
<p
|
<div
|
||||||
class="text-slate-600 dark:text-zinc-400 text-sm"
|
class="text-slate-600 dark:text-zinc-400 text-sm"
|
||||||
style="grid-area: description; place-self: start start;"
|
style="grid-area: description; place-self: start start;"
|
||||||
>
|
>
|
||||||
{@render description?.()}
|
{@render description?.()}
|
||||||
</p>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if children}
|
{#if children}
|
||||||
<div
|
<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