migrate: run bunx migrate

This commit is contained in:
James Xylight committed 2025-06-06 11:26:00 -07:00
1 parent 964baccfa0
commit bc05ad549a
115 files changed
+329 -326

No files matched your search

@@ -50,6 +50,6 @@
{required}
{...rest}
rows={1}
class="font-semibold text-2xl focus:outline-none w-full bg-transparent resize-none {clazz}"
class="font-semibold text-2xl focus:outline-hidden w-full bg-transparent resize-none {clazz}"
></textarea>
</label>
+1 -1
View File
@@ -54,7 +54,7 @@
{richURL.hostname}
</span>
<span
class="text-transparent bg-clip-text bg-gradient-to-r
class="text-transparent bg-clip-text bg-linear-to-r
from-blue-300 via-blue-300 to-blue-300/0 w-full
dark:from-blue-800 dark:via-blue-800 dark:to-blue-800/0
"
+3 -3
View File
@@ -38,14 +38,14 @@
`
const buttonClass = (selected: boolean) => `
first:rounded-l-lg first:border-l first:dark:border-l-transparent
last:rounded-r-lg last:border-r last:dark:border-r-transparent
first:rounded-l-lg first:border-l dark:first:border-l-transparent
last:rounded-r-lg last:border-r dark:last:border-r-transparent
rounded-l-none
rounded-r-none
px-3 py-1.5 text-sm hover:brightness-110 ${buttonClazz || ''}
${
!selected
? `hover:dark:bg-zinc-800 border-slate-100 border-t border-b border-b-slate-300 dark:border-b-0
? `dark:hover:bg-zinc-800 border-slate-100 border-t border-b border-b-slate-300 dark:border-b-0
dark:border-t dark:border-t-zinc-700`
: ''
}
+1 -1
View File
@@ -69,7 +69,7 @@
<div class="flex flex-col gap-1">
{#if taglines && taglines.length > 0}
<Markdown
class="!pt-0"
class="pt-0!"
source={taglines[Math.floor(Math.random() * taglines.length)].content}
/>
{/if}
@@ -158,7 +158,7 @@
src={open ? Minus : Plus}
size="16"
micro
class="transition-transform duration-[400ms] ease-out {open
class="transition-transform duration-400 ease-out {open
? ''
: 'rotate-90'} text-primary-900 dark:text-primary-100"
/>
@@ -30,7 +30,7 @@
</script>
<Material
class="flex flex-col flex-1 !bg-transparent !border-0 rounded-none
class="flex flex-col flex-1 bg-transparent! border-0! rounded-none
{view == 'compact' ? 'py-4' : 'py-5'} {clazz}"
color="distinct"
padding="none"
@@ -55,7 +55,7 @@
class="flex items-center gap-0.5 transition-colors px-1.5 h-full
{vote == 1
? shouldShowVoteColor(vote, 'upvotes')
: 'hover:bg-slate-100 hover:dark:bg-zinc-800'}"
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
>
<Icon src={ChevronUp} size="18" mini />
<span class="grid text-sm">
@@ -71,14 +71,14 @@
</span>
</button>
<div
class="border-l h-4 w-0 !p-0 border-slate-200 dark:border-zinc-800"
class="border-l h-4 w-0 p-0! border-slate-200 dark:border-zinc-800"
></div>
<button
onclick={() => castVote(vote == -1 ? 0 : -1)}
class="flex flex-row-reverse items-center gap-0.5 h-full transition-colors border-0 px-1.5
{vote == -1
? shouldShowVoteColor(vote, 'downvotes')
: 'hover:bg-slate-100 hover:dark:bg-zinc-800'}"
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
>
<Icon src={ChevronDown} size="18" mini />
<span class="grid text-sm">
@@ -130,7 +130,7 @@
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
<svelte:element
this={hydrated ? 'div' : 'a'}
class="w-full h-10 !border-y-0 -mt-2 -ml-2.5"
class="w-full h-10 border-y-0! -mt-2 -ml-2.5"
href="/comment/{page.params.instance}/{node.comment_view.comment.id}"
>
<Button
@@ -138,7 +138,7 @@
disabled={nodes[index].loading}
rounding="pill"
color="tertiary"
class="font-normal !text-sm text-slate-600 dark:text-zinc-400"
class="font-normal text-sm! text-slate-600 dark:text-zinc-400"
loaderWidth={16}
onclick={() => {
if (nodes[index].depth > 4) {
@@ -170,7 +170,7 @@
<div class="flex flex-col gap-1">
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
<Expandable bind:open={settings.expand.about} class="!pt-0">
<Expandable bind:open={settings.expand.about} class="pt-0!">
{#snippet title()}
<span class="py-1 px-1 flex gap-1 items-center w-full">
{$t('cards.site.about')}
@@ -79,9 +79,9 @@
/>
{/if}
<div
class="flex flex-col overflow-hidden whitespace-nowrap flex-1 min-w-0 flex-shrink"
class="flex flex-col overflow-hidden whitespace-nowrap flex-1 min-w-0 shrink"
>
<div class="font-medium text-base overflow-hidden overflow-ellipsis">
<div class="font-medium text-base overflow-hidden text-ellipsis">
<span>{community.community.title}</span>
{#if community.community.deleted}
<Icon
@@ -124,10 +124,10 @@
class="text-sm text-slate-600 dark:text-zinc-400 flex gap-0.5"
class:justify-center={view == 'cozy'}
>
<span class="overflow-hidden overflow-ellipsis">
<span class="overflow-hidden text-ellipsis">
{new URL(community.community.actor_id).hostname}
</span>
<span class="overflow-hidden overflow-ellipsis">
<span class="overflow-hidden text-ellipsis">
{#if !showCounts}
•
<FormattedNumber number={community.counts.subscribers} />
@@ -51,14 +51,14 @@
{/if}
{#if name}
<span class="flex gap-0 items-center max-w-full min-w-0 flex-shrink">
<span class="flex gap-0 items-center max-w-full min-w-0 shrink">
<span class="font-medium username-text">
{displayName ? community.title : community.name}
</span>
{#if showInstance}
<span
class="text-slate-500 dark:text-zinc-500 font-normal
instance-text flex-shrink {instanceClass || ''}"
instance-text shrink {instanceClass || ''}"
>
@{new URL(community.actor_id).hostname}
</span>
@@ -25,7 +25,7 @@
<Menu placement="bottom" class="top-0 h-[26px] w-[26px] ">
{#snippet target()}
<Button
class="w-[26px] h-[26px] hover:!text-green-500 dark:text-zinc-400 text-slate-600"
class="w-[26px] h-[26px] hover:text-green-500! dark:text-zinc-400 text-slate-600"
size="square-md"
color="tertiary"
{...rest}
@@ -79,7 +79,7 @@
<Menu placement="bottom-end">
{#snippet target()}
<Button
class="hover:!text-green-500"
class="hover:text-green-500!"
size="square-md"
color="ghost"
loading={acting}
+9 -9
View File
@@ -17,12 +17,12 @@
import { goto } from '$app/navigation'
import type { ClassValue } from 'svelte/elements'
function getTagRule(tags: Tag[]): 'blur' | 'hide' | undefined {
function getTagRule(tags: Tag[]): 'blur-sm' | 'hide' | undefined {
const tagContent = tags.map((t) => t.content.toLowerCase())
let rule: 'blur' | 'hide' | undefined
let rule: 'blur-sm' | 'hide' | undefined
if (settings.nsfwBlur && (post.post.nsfw || post.community.nsfw))
rule = 'blur'
rule = 'blur-sm'
tagContent.forEach((tag) => {
if (settings.tagRules?.[tag]) rule = settings.tagRules?.[tag] ?? rule
if (rule == 'hide') return rule
@@ -104,7 +104,7 @@
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
<div
class={[
'post relative max-w-full min-w-0 w-full cursor-pointer outline-none group',
'post relative max-w-full min-w-0 w-full cursor-pointer outline-hidden group',
settings.leftAlign && 'left-align',
view == 'compact' && 'py-3 list-type compact',
view == 'cozy' && 'py-5 flex flex-col gap-2',
@@ -146,7 +146,7 @@
{#if rule != 'hide'}
<PostMedia
post={post.post}
blur={rule == 'blur' ? true : undefined}
blur={rule == 'blur-sm' ? true : undefined}
{view}
{type}
/>
@@ -158,9 +158,9 @@
{type}
class="{settings.leftAlign
? 'mr-3'
: 'ml-3'} flex-shrink no-list-margin"
: 'ml-3'} shrink no-list-margin"
style="grid-area: media;"
blur={rule == 'blur' ? true : undefined}
blur={rule == 'blur-sm' ? true : undefined}
{view}
/>
{/if}
@@ -181,8 +181,8 @@
class="absolute overflow-hidden inset-0
sm:rounded-xl bg-slate-50 dark:bg-zinc-900
opacity-0 transition-all -z-50 no-list-margin
group-hover:inset-y-0.5 group-hover:-inset-x-4 group-hover:sm:-inset-x-5 group-hover:opacity-100
group-focus:inset-y-0.5 group-focus:-inset-x-4 group-focus:sm:-inset-x-5 group-focus:opacity-100
group-hover:inset-y-0.5 group-hover:-inset-x-4 sm:group-hover:-inset-x-5 group-hover:opacity-100
group-focus:inset-y-0.5 group-focus:-inset-x-4 sm:group-focus:-inset-x-5 group-focus:opacity-100
duration-150"
></div>
</div>
@@ -114,7 +114,7 @@
{/if}
<footer
class="flex flex-row gap-2 items-center flex-shrink-0 {buttonHeight}"
class="flex flex-row gap-2 items-center shrink-0 {buttonHeight}"
class:flex-row-reverse={settings.posts.reverseActions}
{style}
>
@@ -131,7 +131,7 @@
<Button
size="custom"
href="{postLink(post.post)}#comments"
class="!text-inherit h-full px-3 relative"
class="text-inherit! h-full px-3 relative"
color="ghost"
rounding="pill"
target={settings.openLinksInNewTab ? '_blank' : ''}
@@ -280,7 +280,7 @@
<MenuDivider>{$t('post.actions.more.creator')}</MenuDivider>
<MenuButton link href={userLink(post.creator)}>
{#snippet prefix()}
<Icon src={UserCircle} size="16" micro class="flex-shrink-0" />
<Icon src={UserCircle} size="16" micro class="shrink-0" />
{/snippet}
<TextProps wrap="no-wrap">
{post.creator.name}
@@ -288,7 +288,7 @@
</MenuButton>
<MenuButton link href={communityLink(post.community)}>
{#snippet prefix()}
<Icon src={Newspaper} size="16" micro class="flex-shrink-0" />
<Icon src={Newspaper} size="16" micro class="shrink-0" />
{/snippet}
<TextProps wrap="no-wrap">
{post.community.title}
@@ -338,7 +338,7 @@
)
toast({ content: $t('toast.copied') })
}}
class="flex-1 !py-0"
class="flex-1 py-0!"
>
{#snippet prefix()}
<Icon src={Share} size="16" micro />
@@ -45,7 +45,7 @@
{style}
class="{!expanded
? ` overflow-hidden
bg-gradient-to-b text-transparent from-slate-600 via-slate-600
bg-linear-to-b text-transparent from-slate-600 via-slate-600
dark:from-zinc-400 dark:via-zinc-400 bg-clip-text z-0 max-h-36`
: 'text-slate-600 dark:text-zinc-400 max-h-full'} text-base {clazz}"
class:pointer-events-none={!clickThrough}
@@ -133,7 +133,7 @@
<Popover autoClose={false} popoverClass="backdrop-blur-xl rounded-2xl">
{#snippet target()}
<button
class="row-span-2 flex-shrink-0 mr-2 self-center group/btn bg-slate-200 dark:bg-zinc-800 rounded-full"
class="row-span-2 shrink-0 mr-2 self-center group/btn bg-slate-200 dark:bg-zinc-800 rounded-full"
>
<Avatar
url={community?.icon}
@@ -147,7 +147,7 @@
{#if community && subscribed}
<div
class="bg-white/80 dark:bg-zinc-900/90 border border-slate-200 dark:border-zinc-800 rounded-2xl shadow-xl p-4
max-w-2xl w-full max-h-[32rem] overflow-auto"
max-w-2xl w-full max-h-128 overflow-auto"
>
<CommunityHeader {community} {subscribed} />
</div>
@@ -159,7 +159,7 @@
<CommunityLink
{community}
style="grid-area: community;"
class="flex-shrink no-list-margin"
class="shrink no-list-margin"
badges={{
nsfw: community.nsfw,
}}
@@ -186,7 +186,7 @@
avatarSize={20}
{user}
avatar={!showCommunity}
class="flex-shrink "
class="shrink "
>
{#snippet extraBadges()}
{#if badges.moderator}
@@ -200,7 +200,7 @@
</address>
{/if}
{#if published}
<RelativeDate date={published} class="flex-shrink-0" />
<RelativeDate date={published} class="shrink-0" />
{/if}
{#if edited}
<div
@@ -216,7 +216,7 @@
</div>
<div
class="flex flex-row min-[480px]:justify-end items-center self-center
flex-wrap gap-2 [&>*]:flex-shrink-0 badges min-[480px]:ml-2"
flex-wrap gap-2 *:shrink-0 badges min-[480px]:ml-2"
style="grid-area: badges;"
>
{#if tags}
@@ -306,7 +306,7 @@
<a
href="/post/{encodeURIComponent(instance.data)}/{id}"
class="inline hover:underline
hover:text-primary-900 hover:dark:text-primary-100 transition-colors max-[480px]:!mt-0
hover:text-primary-900 dark:hover:text-primary-100 transition-colors max-[480px]:mt-0!
{settings.font == 'satoshi/nunito'
? 'font-display font-semibold'
: 'font-medium'} {titleClass}"
@@ -2,9 +2,9 @@
import { settings } from '$lib/settings.svelte.js'
export const voteColor = (vote: number, border: boolean = false) =>
vote == 1
? `bg-gradient-to-br from-blue-500 to-indigo-500 dark:from-blue-400 dark:to-indigo-500 text-slate-50 dark:text-zinc-900`
? `bg-linear-to-br from-blue-500 to-indigo-500 dark:from-blue-400 dark:to-indigo-500 text-slate-50 dark:text-zinc-900`
: vote == -1
? `bg-gradient-to-br from-red-500 to-pink-500 dark:from-red-400 dark:to-pink-600 text-slate-50 `
? `bg-linear-to-br from-red-500 to-pink-500 dark:from-red-400 dark:to-pink-600 text-slate-50 `
: ''
export const shouldShowVoteColor = (
@@ -73,10 +73,10 @@
{#if children}{@render children({ vote, score })}{:else}
<div
class="{buttonColor.ghost} rounded-full h-full font-medium flex items-center *:p-2
hover:bg-white hover:dark:bg-zinc-900 overflow-hidden transition-colors flex-shrink-0
hover:bg-white dark:hover:bg-zinc-900 overflow-hidden transition-colors shrink-0
{vote != 0
? ''
: '!text-inherit'} !text-inherit divide-x divide-slate-200 dark:divide-zinc-800
: 'text-inherit!'} text-inherit! divide-x divide-slate-200 dark:divide-zinc-800
{loading ? 'animate-pulse opacity-75 pointer-events-none' : ''}"
role="group"
aria-label={$t('aria.vote.group')}
@@ -86,7 +86,7 @@
class="flex items-center gap-0.5 transition-colors relative z-0
{vote == 1
? shouldShowVoteColor(vote, 'upvotes')
: 'hover:bg-slate-100 hover:dark:bg-zinc-800'}"
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
aria-pressed={vote == 1}
aria-label={$t('post.actions.vote.upvote')}
>
@@ -112,7 +112,7 @@
class="flex items-center flex-row-reverse gap-0.5 transition-colors
{vote == -1
? shouldShowVoteColor(vote, 'downvotes')
: 'hover:bg-slate-100 hover:dark:bg-zinc-800'}"
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
aria-pressed={vote == -1}
aria-label={$t('post.actions.vote.downvote')}
>
@@ -208,7 +208,7 @@
<div
class="flex flex-col justify-center items-center
rounded-xl gap-2 py-8 mt-6
border !border-b !border-red-500 bg-red-500/5 px-4"
border border-b! border-red-500! bg-red-500/5 px-4"
>
<div class="bg-red-500/30 rounded-full p-3 text-red-500">
<Icon src={ExclamationTriangle} size="24" solid></Icon>
@@ -229,7 +229,7 @@
class="w-96 max-w-full h-8 bg-slate-100 dark:bg-zinc-800 rounded-md"
></div>
<div class="w-full h-48 bg-slate-100 dark:bg-zinc-800 rounded-md"></div>
<div class="!bg-transparent h-8 flex justify-between">
<div class="bg-transparent! h-8 flex justify-between">
<div class="w-48 h-8 bg-slate-100 dark:bg-zinc-800 rounded-md"></div>
<div class="w-24 h-8 bg-slate-100 dark:bg-zinc-800 rounded-md"></div>
</div>
@@ -298,7 +298,7 @@
<div class="flex flex-col gap-1">
<span class="font-medium text-sm">{$t('form.post.community')}</span>
<Button
class="w-full !bg-white dark:!bg-black h-[38px]"
class="w-full bg-white! dark:bg-black! h-[38px]"
onclick={() => (data.community = null)}
alignment="left"
size="sm"
@@ -43,7 +43,7 @@
class="flex flex-col-reverse sm:flex-row
overflow-hidden gap-4 embed-card z-0 relative
dark:border-t-zinc-800 border-opacity-80 max-w-full
dark:bg-zinc-950 group-hover/link:bg-slate-50 group-hover/link:dark:bg-zinc-900 transition-colors"
dark:bg-zinc-950 group-hover/link:bg-slate-50 dark:group-hover/link:bg-zinc-900 transition-colors"
rounding="2xl"
element="article"
>
@@ -67,7 +67,7 @@
</div>
{#if thumbnail_url}
<picture
class="-m-4 mb-auto sm:-mb-4 sm:ml-auto flex-shrink-0 sm:w-1/3 sm:max-w-60"
class="-m-4 mb-auto sm:-mb-4 sm:ml-auto shrink-0 sm:w-1/3 sm:max-w-60"
>
<source
srcset={optimizeImageURL(thumbnail_url, 256)}
@@ -98,7 +98,7 @@
href={url}
target="_blank"
class="text-slate-900 dark:text-zinc-300 items-center
text-xs overflow-hidden max-w-full block flex-shrink self-start w-max"
text-xs overflow-hidden max-w-full block shrink self-start w-max"
size="xs"
color="ghost"
rounding="pill"
@@ -135,12 +135,12 @@
{#if thumbnail}
<img
src={optimizeImageURL(thumbnail, 512)}
class="absolute top-0 left-0 -z-10 brightness-[25%] w-full object-cover h-full"
class="absolute top-0 left-0 -z-10 brightness-25 w-full object-cover h-full"
alt=""
/>
{:else}
<div
class="absolute blur-3xl -z-10 top-0 left-0 w-full h-full bg-gradient-to-br from-green-800 via-blue-900 via-20% to-red-700"
class="absolute blur-3xl -z-10 top-0 left-0 w-full h-full bg-linear-to-br from-green-800 via-blue-900 via-20% to-red-700"
></div>
{/if}
<Icon src={data.icon} solid size="48" />
@@ -73,7 +73,7 @@
<div
class="absolute bottom-0 left-0 right-0 flex justify-between items-center
rounded-full ml-auto w-max m-2 p-0 gap-1
*:bg-white *:border *:border-slate-200 *:dark:border-zinc-800 *:dark:bg-zinc-900"
*:bg-white *:border *:border-slate-200 dark:*:border-zinc-800 dark:*:bg-zinc-900"
onclick={(e) => e.stopPropagation()}
>
{#if post.alt_text}
@@ -111,7 +111,7 @@
<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
group-hover/media:dark:border-zinc-600 transition-colors text-slate-400 dark:text-zinc-600 grid
dark:group-hover/media:border-zinc-600 transition-colors text-slate-400 dark:text-zinc-600 grid
place-items-center {size}"
>
<Icon
@@ -29,7 +29,7 @@
if (badges.photon && badges.photon?.includes?.(actor_id)) {
return {
classes:
'bg-gradient-to-r bg-clip-text text-transparent from-blue-500 to-purple-700 dark:from-blue-400 dark:to-purple-500',
'bg-linear-to-r bg-clip-text text-transparent from-blue-500 to-purple-700 dark:from-blue-400 dark:to-purple-500',
icon: 'photon',
}
}
@@ -37,7 +37,7 @@
if (badges.translator && badges.translator?.includes?.(actor_id)) {
return {
classes:
'bg-gradient-to-r bg-clip-text text-transparent from-sky-500 to-blue-700 dark:from-blue-300 dark:to-indigo-500',
'bg-linear-to-r bg-clip-text text-transparent from-sky-500 to-blue-700 dark:from-blue-300 dark:to-indigo-500',
icon: Language,
iconClass: 'text-blue-500 dark:text-blue-400',
}
@@ -97,11 +97,11 @@
url={user.avatar}
alt={user.name}
width={avatarSize}
class="flex-shrink-0"
class="shrink-0"
/>
{/if}
<span
class="flex gap-0 items-center flex-shrink max-w-full min-w-0"
class="flex gap-0 items-center shrink max-w-full min-w-0"
class:ml-0.5={avatar}
>
<span
@@ -112,7 +112,7 @@
</span>
{#if showInstance}
<span
class="text-slate-500 dark:text-zinc-500 font-normal instance-text flex-shrink {instanceClass ??
class="text-slate-500 dark:text-zinc-500 font-normal instance-text shrink {instanceClass ??
''}"
>
@{new URL(user.actor_id).hostname}
+1 -1
View File
@@ -148,7 +148,7 @@
<div
class="{noStyle
? ''
: 'break-words flex flex-col gap-2 leading-[1.5]'} {clazz}"
: 'break-words flex flex-col gap-2 leading-normal'} {clazz}"
{style}
>
<SvelteMarkdown
@@ -145,7 +145,7 @@
{/if}
<div
class="flex flex-col border border-slate-200 border-b-slate-300 dark:border-t-zinc-700/70 dark:border-zinc-800
focus-within:border-primary-900 focus-within:dark:border-primary-100 focus-within:ring ring-slate-300
focus-within:border-primary-900 dark:focus-within:border-primary-100 focus-within:ring-3 ring-slate-300
dark:ring-zinc-700 rounded-xl
overflow-hidden transition-colors {clazz}"
class:mt-1={label}
@@ -160,7 +160,7 @@ overflow-hidden transition-colors {clazz}"
{#if tools}
<!--Toolbar-->
<div
class="[&>*]:flex-shrink-0 flex flex-row overflow-auto p-1.5 gap-1.5 border-b
class="*:shrink-0 flex flex-row overflow-auto p-1.5 gap-1.5 border-b
border-slate-200 dark:border-zinc-900 {disabled
? 'opacity-60 pointer-events-none'
: ''}"
@@ -262,7 +262,7 @@ overflow-hidden transition-colors {clazz}"
{/if}
<!--Actual text area-->
<TextArea
class="bg-inherit z-0 border-0 rounded-none !ring-0 focus:!ring-transparent !transition-none resize-none"
class="bg-inherit z-0 border-0 rounded-none ring-0! focus:ring-transparent! transition-none! resize-none"
bind:value
bind:element={textArea}
onkeydown={(e) => {
@@ -11,13 +11,13 @@
{#if ordered}
<ol
{start}
class="pl-5 list-decimal *:marker:font-medium *:marker:text-primary-900 *:marker:dark:text-primary-100"
class="pl-5 list-decimal *:marker:font-medium *:marker:text-primary-900 dark:*:marker:text-primary-100"
>
{@render children?.()}
</ol>
{:else}
<ul
class="list-disc pl-4 *:marker:text-primary-900 *:marker:dark:text-primary-100"
class="list-disc pl-4 *:marker:text-primary-900 dark:*:marker:text-primary-100"
>
{@render children?.()}
</ul>
@@ -9,7 +9,7 @@
let { children } = $props()
</script>
<p class="leading-[1.5] break-words {options.inline ? '' : 'max-w'}">
<p class="leading-normal break-words {options.inline ? '' : 'max-w'}">
{@render children?.()}
</p>
+2 -2
View File
@@ -66,7 +66,7 @@
{alt}
{width}
{title}
class={['aspect-square object-cover overflow-hidden flex-shrink-0', clazz]}
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
style="width: {width}px; height: {width}px; {style}"
class:rounded-full={circle}
class:rounded-md={!circle}
@@ -74,7 +74,7 @@
{:else}
<div
style="width: {width}px; height: {width}px;"
class={['aspect-square object-cover overflow-hidden flex-shrink-0', clazz]}
class={['aspect-square object-cover overflow-hidden shrink-0', clazz]}
class:rounded-full={circle}
class:rounded-md={!circle}
>
+2 -2
View File
@@ -69,7 +69,7 @@
this={url ? 'a' : 'span'}
href={url}
class="text-xl font-semibold {url
? 'hover:underline hover:text-primary-900 hover:dark:text-primary-100'
? 'hover:underline hover:text-primary-900 dark:hover:text-primary-100'
: ''}"
>
{name}
@@ -97,7 +97,7 @@
<div
class={[
'overflow-hidden whitespace-nowrap',
'bg-gradient-to-r from-slate-700 via-slate-700 to-slate-700/0',
'bg-linear-to-r from-slate-700 via-slate-700 to-slate-700/0',
'dark:from-zinc-400 dark:via-zinc-400 dark:to-zinc-400/0',
'text-transparent bg-clip-text',
'max-w-[50%] overflow-hidden',
+1 -1
View File
@@ -26,7 +26,7 @@
{#snippet summary()}
<div
class="font-medium w-full text-left flex flex-row items-center justify-between hover:text-primary-900
hover:dark:text-primary-100 transition-colors h-full z-0 group relative"
dark:hover:text-primary-100 transition-colors h-full z-0 group relative"
>
<div class="flex flex-row gap-1 items-center w-full">
{@render title?.(open)}
+2 -2
View File
@@ -42,8 +42,8 @@
<!-- svelte-ignore a11y_click_events_have_key_events -->
<!-- svelte-ignore a11y_positive_tabindex -->
<div
class="fixed top-0 left-0 w-screen h-[100svh] overflow-auto bg-white/50 dark:bg-black/50
flex flex-col z-[100] backdrop-blur-sm"
class="fixed top-0 left-0 w-screen h-svh overflow-auto bg-white/50 dark:bg-black/50
flex flex-col z-100 backdrop-blur-xs"
transition:fade={{ duration: 150 }}
onclick={() => history.back()}
onkeydown={(e) => {
+1 -1
View File
@@ -14,7 +14,7 @@
viewBox="0 0 100 100"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="inline fill-black dark:fill-white hover:fill-slate-700 hover:dark:fill-zinc-300 transition-colors"
class="inline fill-black dark:fill-white hover:fill-slate-700 dark:hover:fill-zinc-300 transition-colors"
>
<path
id="hexagon"
+1 -1
View File
@@ -63,7 +63,7 @@
title={$t('common.back')}
size="square-md"
rounding="pill"
class="text-inherit dark:text-inherit disabled:!opacity-20 disabled:!bg-transparent"
class="text-inherit dark:text-inherit disabled:opacity-20! disabled:bg-transparent!"
disabled={(cursor?.back == undefined && cursor?.next != undefined) ||
page <= 0}
data-sveltekit-preload-data="off"
+1 -1
View File
@@ -8,7 +8,7 @@
</script>
<aside
class="sticky top-0 left-0 break-words flex flex-shrink
class="sticky top-0 left-0 break-words flex shrink
flex-col gap-4 px-6 pt-4 max-w-full w-full h-full
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {clazz}"
>
+3 -3
View File
@@ -69,16 +69,16 @@
>
{@render sidebar?.({
class: `hidden md:flex sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950
z-40 lg:!pt-20`,
z-40 lg:pt-20!`,
style: 'grid-area: sidebar; width: 100% !important;',
})}
{@render main?.({
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm z-0 main !pb-22 lg:!pb-0 lg:!pt-22`,
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-xs z-0 main pb-22! lg:pb-0! lg:pt-22!`,
style: 'grid-area: main',
})}
{@render suffix?.({
class: `max-xl:hidden w-full sticky top-0 left-0 max-h-screen bg-slate-50 dark:bg-zinc-950
z-40 lg:!pt-20`,
z-40 lg:pt-20!`,
style: 'grid-area: suffix;',
})}
</div>
@@ -53,8 +53,8 @@
<a
onclick={() => invalidateAll()}
href={buildUrl(currentRoute, route.href)}
class="font-medium rounded-full px-4 py-1 hover:bg-slate-200/40 hover:dark:bg-zinc-700/40
transition-colors duration-100 relative z-0 flex-shrink-0"
class="font-medium rounded-full px-4 py-1 hover:bg-slate-200/40 dark:hover:bg-zinc-700/40
transition-colors duration-100 relative z-0 shrink-0"
>
{route.name}
{#if isSelected(page.url, currentRoute, route.href, defaultRoute)}
@@ -35,12 +35,12 @@
color="none"
{...rest}
class={[
'flex-shrink-0 rounded-full w-10 h-10 lg:w-max lg:h-8 lg:px-3 lg:rounded-xl',
'shrink-0 rounded-full w-10 h-10 lg:w-max lg:h-8 lg:px-3 lg:rounded-xl',
isSelected &&
'bg-slate-200 dark:bg-zinc-900 text-primary-900 dark:!text-primary-100',
'bg-slate-200 dark:bg-zinc-900 text-primary-900 dark:text-primary-100!',
!rest.color && buttonColor.tertiary,
!rest.color &&
'lg:bg-white lg:dark:bg-zinc-900 border lg:border-slate-200 lg:border-b-slate-300 lg:dark:border-zinc-800 lg:dark:border-t-zinc-700/50 lg:hover:bg-slate-100 lg:hover:dark:bg-zinc-800 lg:active:bg-slate-200 lg:active:dark:bg-zinc-950',
'lg:bg-white lg:dark:bg-zinc-900 border lg:border-slate-200 lg:border-b-slate-300 lg:dark:border-zinc-800 lg:dark:border-t-zinc-700/50 lg:hover:bg-slate-100 lg:dark:hover:bg-zinc-800 lg:active:bg-slate-200 lg:dark:active:bg-zinc-950',
clazz,
]}
size="custom"
+1 -1
View File
@@ -50,7 +50,7 @@
}}
href="/"
label={$t('nav.home')}
class="ml-2 lg:ml-2 logo border-0 lg:!rounded-full lg:w-10 lg:h-10 lg:!p-0"
class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10 lg:h-10 lg:p-0!"
adaptive={false}
>
{#snippet customIcon()}
+3 -3
View File
@@ -72,7 +72,7 @@
<button
class="w-10 h-10 rounded-full border-slate-200 dark:border-zinc-700
transition-all bg-slate-50 dark:bg-zinc-900 relative
hover:bg-slate-200 hover:dark:bg-zinc-700 group {buttonClass}"
hover:bg-slate-200 dark:hover:bg-zinc-700 group {buttonClass}"
title={$t('profile.profile')}
>
{#if profile.data?.user}
@@ -111,7 +111,7 @@
{/snippet}
{$t('profile.inbox')}
{#if $notifications.inbox > 0}
<Badge color="red-subtle" class="text-xs ml-auto font-bold !py-0.5">
<Badge color="red-subtle" class="text-xs ml-auto font-bold py-0.5!">
{$notifications.inbox > 99 ? '∞' : $notifications.inbox}
</Badge>
{/if}
@@ -136,7 +136,7 @@
{/snippet}
{$t('nav.menu.settings')}
</MenuButton>
<MenuButton class="!py-0">
<MenuButton class="py-0!">
{#snippet prefix()}
<Icon
src={theme.colorScheme == 'system'
@@ -26,7 +26,7 @@
alignment="left"
color="tertiary"
size="lg"
class="focus:bg-slate-200 focus:dark:bg-zinc-800 block w-full {clazz}"
class="focus:bg-slate-200 dark:focus:bg-zinc-800 block w-full {clazz}"
data-sveltekit-preload-code="viewport"
data-sveltekit-preload-data="tap"
{...rest}
@@ -255,12 +255,12 @@
<TextInput
bind:value={search}
class="sticky rounded-none border-t-0 border-x-0 focus-within:dark:border-zinc-800"
class="sticky rounded-none border-t-0 border-x-0 dark:focus-within:border-zinc-800"
size="lg"
placeholder={$t('nav.commands.prompt')}
bind:element={input}
/>
<div class="h-[32rem] overflow-auto border-slate-200 dark:border-zinc-800 p-5">
<div class="h-128 overflow-auto border-slate-200 dark:border-zinc-800 p-5">
{#if breadcrumbs.length > 0}
<div class="flex items-center gap-2 my-1">
<button
@@ -299,7 +299,7 @@
handleSelect(action)
}}
class="{globalIndex == selectedIndex
? '!bg-slate-100 dark:!bg-zinc-800 text-inherit'
? 'bg-slate-100! dark:bg-zinc-800! text-inherit'
: 'text-slate-600 dark:text-zinc-400'} block"
/>
</li>
@@ -24,9 +24,9 @@
<svelte:window onkeydown={handleKeydown} />
{#if open}
<Modal bind:open title={null} class="!p-0 !gap-0">
<Modal bind:open title={null} class="p-0! gap-0!">
{#await import('./Commands.svelte')}
<div class="h-[32rem] flex flex-col gap-2 items-center justify-center">
<div class="h-128 flex flex-col gap-2 items-center justify-center">
<Spinner width={32} />
<span class="font-medium text-lg">
{$t('nav.commands.downloading')}
@@ -20,7 +20,7 @@
{#each items.toSorted( (a, b) => a.title.localeCompare(b.title), ) as follow (follow.id)}
<div
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-900
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 dark:hover:bg-zinc-900
transition-colors rounded-lg"
animate:flip={{ duration: 500, easing: expoOut }}
>
@@ -39,7 +39,7 @@
switching = false
}}
class="w-full font-normal {profile.data?.id == prof.id
? '!bg-slate-100 dark:!bg-zinc-900'
? 'bg-slate-100! dark:bg-zinc-900!'
: ''}"
>
{#snippet customIcon()}
+1 -1
View File
@@ -47,7 +47,7 @@
{$t('profile.inbox')}
{#if $notifications.inbox}
<Badge
class="min-w-5 h-5 !p-0 px-0.5 grid place-items-center ml-auto"
class="min-w-5 h-5 p-0! px-0.5 grid place-items-center ml-auto"
color="red-subtle"
>
{$notifications.inbox > 99 ? '∞' : $notifications.inbox}
@@ -38,7 +38,7 @@
rounding="pill"
{...rest}
{href}
class="font-normal block !origin-left border border-transparent hover:dark:bg-zinc-900 {!selected
class="font-normal block origin-left! border border-transparent dark:hover:bg-zinc-900 {!selected
? 'text-slate-600 dark:text-zinc-400'
: 'bg-slate-100 dark:bg-zinc-925'} {clazz}"
>
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts" module>
const wrapClass = {
wrap: '',
'no-wrap': 'overflow-hidden overflow-ellipsis whitespace-nowrap',
'no-wrap': 'overflow-hidden text-ellipsis whitespace-nowrap',
}
</script>
+1 -1
View File
@@ -449,7 +449,7 @@
"titleTags": {
"rules": {
"title": "Правила",
"blur": "Замъгляване",
"blur-sm": "Замъгляване",
"show": "Показване",
"hide": "Скриване"
},
+2 -2
View File
@@ -802,7 +802,7 @@
"description": "Take text in [brackets] and turn it into tags that you can click to search for.",
"rules": {
"title": "Rules",
"blur": "Blur",
"blur-sm": "Blur",
"hide": "Hide",
"show": "Show"
}
@@ -856,7 +856,7 @@
"removed": "Removed by moderator"
},
"nsfwBlur": {
"title": "NSFW blur",
"title": "NSFW blur-sm",
"description": "Blur images and remove post bodies of NSFW posts."
},
"instances": {
+1 -1
View File
@@ -716,7 +716,7 @@
"title": "Analizar las etiquetas en los títulos",
"rules": {
"title": "Reglas",
"blur": "Desenfocar",
"blur-sm": "Desenfocar",
"hide": "Ocultar",
"show": "Mostrar"
},
+1 -1
View File
@@ -740,7 +740,7 @@
"description": "Muuta [hakasulkeissa] olevat tekstinpätkät tageiksi, joiden avulla voi hakea sisältöä.",
"title": "Erottele tagit otsikoista",
"rules": {
"blur": "Sumenna",
"blur-sm": "Sumenna",
"hide": "Piilota",
"show": "Näytä",
"title": "Valinnat"
+1 -1
View File
@@ -518,7 +518,7 @@
"description": "Le texte entre [crochets] est transformé en balises sur lesquelles vous pouvez cliquer pour effectuer une recherche.",
"title": "Analyse des tags dans le titre",
"rules": {
"blur": "Rendre flou",
"blur-sm": "Rendre flou",
"hide": "Masquer",
"show": "Afficher",
"title": "Les règles"
+1 -1
View File
@@ -113,7 +113,7 @@
"description": "題名内の[カッコ欄]をタグに変え、クリックして類似するタグを探すことができます。",
"rules": {
"title": "ルール",
"blur": "モザイク",
"blur-sm": "モザイク",
"hide": "隠す",
"show": "表示"
}
+1 -1
View File
@@ -510,7 +510,7 @@
"description": "Neem tekst in [haakjes] en maak er tags van waarop je kunt klikken om naar te zoeken.",
"rules": {
"title": "Regels",
"blur": "Vervagen",
"blur-sm": "Vervagen",
"hide": "Verbergen",
"show": "Toon"
}
+1 -1
View File
@@ -694,7 +694,7 @@
"description": "Zamień tekst w [nawiasach] na tagi, które można kliknąć, aby wyszukać.",
"rules": {
"title": "Zasady",
"blur": "Rozmycie",
"blur-sm": "Rozmycie",
"hide": "Ukryj",
"show": "Pokaż"
}
+1 -1
View File
@@ -711,7 +711,7 @@
"description": "Processa o texto entre [parêntesis retos] e transforma-o em etiquetas nas quais podes carregar para pesquisar por mais.",
"rules": {
"title": "Regras",
"blur": "Desfocar",
"blur-sm": "Desfocar",
"hide": "Esconder",
"show": "Mostrar"
}
+1 -1
View File
@@ -713,7 +713,7 @@
"titleTags": {
"rules": {
"title": "Правила",
"blur": "Размывать",
"blur-sm": "Размывать",
"hide": "Скрывать",
"show": "Показывать"
},
+1 -1
View File
@@ -770,7 +770,7 @@
"description": "Metni [parantez] içine alın ve aramak için tıklayabileceğiniz etiketlere dönüştürün.",
"rules": {
"title": "Kurallar",
"blur": "Bulanıklık",
"blur-sm": "Bulanıklık",
"hide": "Sakla",
"show": "Göstermek"
}
+1 -1
View File
@@ -660,7 +660,7 @@
"description": "将[括号]中的文本转换为可以单击搜索的标签。",
"rules": {
"title": "规则",
"blur": "模糊",
"blur-sm": "模糊",
"hide": "隐藏",
"show": "显示"
}
+2 -2
View File
@@ -30,7 +30,7 @@
url={profile.avatar}
width={size}
alt=""
class={['flex-shrink-0 rounded-full', selected && 'scale-75']}
class={['shrink-0 rounded-full', selected && 'scale-75']}
/>
{:else}
<Icon
@@ -38,7 +38,7 @@
mini={selected}
size={size?.toString()}
title={profile.username}
class="text-blue-500 flex-shrink-0"
class="text-blue-500 shrink-0"
style={guest
? `color: gray`
: profile.color
+13 -13
View File
@@ -12,39 +12,39 @@
export const buttonColor = {
primary: `border border-transparent bg-primary-900 text-white
dark:bg-primary-100 dark:text-black hover:brightness-125 dark:hover:brightness-90 active:brightness-90
active:dark:brightness-75`,
dark:active:brightness-75`,
secondary: `border border-slate-200 border-b-slate-300 dark:border-zinc-800 dark:border-t-zinc-700/50 bg-white dark:bg-zinc-900
hover:bg-slate-100 hover:dark:bg-zinc-800 hover:dark:border-zinc-700 hover:dark:border-zinc-700 active:dark:bg-zinc-900 active:bg-slate-200`,
hover:bg-slate-100 dark:hover:bg-zinc-800 dark:hover:border-zinc-700 dark:hover:border-zinc-700 dark:active:bg-zinc-900 active:bg-slate-200`,
tertiary:
'border border-transparent bg-transparent hover:bg-slate-100 hover:dark:bg-zinc-700/30 dark:text-zinc-200',
'border border-transparent bg-transparent hover:bg-slate-100 dark:hover:bg-zinc-700/30 dark:text-zinc-200',
danger:
'border border-red-500 bg-red-500 hover:text-red-500 hover:bg-transparent text-white',
'danger-subtle': 'text-red-500 hover:bg-red-500 hover:!text-inherit',
'danger-subtle': 'text-red-500 hover:bg-red-500 hover:text-inherit!',
'success-subtle': 'text-green-500 hover:bg-green-500 hover:!text-inherit',
'success-subtle': 'text-green-500 hover:bg-green-500 hover:text-inherit!',
'warning-subtle': 'text-yellow-500 hover:bg-yellow-500 hover:!text-inherit',
'warning-subtle': 'text-yellow-500 hover:bg-yellow-500 hover:text-inherit!',
ghost: `border border-slate-200 dark:border-zinc-800 bg-transparent
hover:bg-slate-100 hover:dark:bg-zinc-800 hover:dark:border-zinc-700 dark:text-zinc-400 hover:text-inherit
hover:dark:text-inherit`,
hover:bg-slate-100 dark:hover:bg-zinc-800 dark:hover:border-zinc-700 dark:text-zinc-400 hover:text-inherit
dark:hover:text-inherit`,
elevated: `bg-slate-100 dark:bg-zinc-800 border border-slate-200
dark:border-zinc-700 hover:bg-zinc-200 hover:dark:bg-zinc-700 hover:border-slate-300
hover:dark:border-zinc-600`,
dark:border-zinc-700 hover:bg-zinc-200 dark:hover:bg-zinc-700 hover:border-slate-300
dark:hover:border-zinc-600`,
elevatedLow: `bg-slate-100 dark:bg-zinc-900 border border-slate-200
dark:border-zinc-800 hover:bg-slate-200 hover:dark:bg-zinc-800 hover:border-slate-300
hover:dark:border-zinc-700`,
dark:border-zinc-800 hover:bg-slate-200 dark:hover:bg-zinc-800 hover:border-slate-300
dark:hover:border-zinc-700`,
none: '',
}
export const buttonShadow = {
sm: 'shadow-sm',
sm: 'shadow-xs',
none: 'shadow-none',
}
+1 -1
View File
@@ -38,7 +38,7 @@
type="radio"
bind:group
{value}
onblur={bubble('blur')}
onblur={bubble('blur-sm')}
onchange={bubble('change')}
{disabled}
class="cursor-pointer disabled:cursor-not-allowed peer disabled:opacity-50"
+5 -5
View File
@@ -22,11 +22,11 @@
class="font-normal cursor-pointer flex flex-row items-start gap-4 group {clazz}"
>
<div
class="w-11 h-6 rounded-full relative z-[inherit] cursor-pointer flex flex-row transition-colors shadow-sm
class="w-11 h-6 rounded-full relative z-[inherit] cursor-pointer flex flex-row transition-colors shadow-xs
{checked
? 'bg-primary-900 dark:bg-primary-100'
: 'bg-slate-200 dark:bg-zinc-800'}
p-0.5 flex-shrink-0"
p-0.5 shrink-0"
>
<input
bind:checked
@@ -34,9 +34,9 @@
class="peer appearance-none absolute top-0 left-0 w-full h-full cursor-pointer z-10"
/>
<div
class="box-border w-5 h-full bg-white peer-checked:dark:bg-black rounded-full shadow-sm
group-active:w-6 transition peer-checked:translate-x-5 group-active:peer-checked:translate-x-4
rtl:peer-checked:-translate-x-5 rtl:group-active:peer-checked:-translate-x-4"
class="box-border w-5 h-full bg-white dark:peer-checked:bg-black rounded-full shadow-xs
group-active:w-6 transition peer-checked:translate-x-5 peer-checked:group-active:translate-x-4
peer-checked:rtl:-translate-x-5 peer-checked:group-active:rtl:-translate-x-4"
></div>
</div>
<div class="flex flex-col {labelClass}">
+3 -3
View File
@@ -80,10 +80,10 @@
class={[
sizeClass[size],
borderClass,
`focus:border-slate-800 focus:dark:border-zinc-200 bg-white dark:bg-zinc-950
focus:outline-none focus:ring-2 ring-slate-800/50 rounded-xl dark:ring-zinc-200/50
`focus:border-slate-800 dark:focus:border-zinc-200 bg-white dark:bg-zinc-950
focus:outline-hidden focus:ring-2 ring-slate-800/50 rounded-xl dark:ring-zinc-200/50
transition-all text-sm w-full disabled:bg-slate-100
disabled:cursor-not-allowed disabled:dark:bg-zinc-900 invalid:!border-red-500
disabled:cursor-not-allowed dark:disabled:bg-zinc-900 invalid:border-red-500!
peer invalid:text-red-500 z-10`,
suffix && 'rounded-b-none border-b-0',
clazz,
+4 -4
View File
@@ -9,7 +9,7 @@
}
export const shadowClass = {
sm: 'shadow-sm',
sm: 'shadow-xs',
none: 'shadow-none',
}
@@ -84,7 +84,7 @@
class={[
shadowClass[shadow],
borderClass,
`border focus-within:border-primary-900 focus-within:dark:border-primary-100 focus-within:ring-2
`border focus-within:border-primary-900 dark:focus-within:border-primary-100 focus-within:ring-2
ring-slate-300 dark:ring-zinc-700
transition-colors
rounded-lg flex flex-row items-center text-sm`,
@@ -112,8 +112,8 @@
class={[
sizeClass[size],
`bg-white dark:bg-zinc-950
focus:outline-none rounded-lg text-sm w-full disabled:bg-slate-100
disabled:cursor-not-allowed disabled:dark:bg-zinc-950 invalid:!border-red-500
focus:outline-hidden rounded-lg text-sm w-full disabled:bg-slate-100
disabled:cursor-not-allowed dark:disabled:bg-zinc-950 invalid:border-red-500!
peer invalid:text-red-500 z-10`,
prefix && 'rounded-l-none',
prefix && inlineAffixes && 'border-l-0',
+2 -2
View File
@@ -127,8 +127,8 @@
}}
size="custom"
disabled={option.disabled}
class="!min-h-0 !py-[5px] {option.value == value
? '!bg-slate-100 dark:!bg-zinc-800'
class="min-h-0! py-[5px]! {option.value == value
? 'bg-slate-100! dark:bg-zinc-800!'
: ''}"
>
{#if option.icon}
+3 -3
View File
@@ -9,8 +9,8 @@
const elevationClass = {
flat: '',
low: 'shadow-xs',
medium: 'shadow-sm',
low: 'shadow-2xs',
medium: 'shadow-xs',
high: 'shadow-md',
xhigh: 'shadow-lg',
max: 'shadow-xl',
@@ -26,7 +26,7 @@
const roundedClass = {
none: 'rounded-none',
sm: 'rounded-sm',
sm: 'rounded-xs',
md: 'rounded-md',
lg: 'rounded-lg',
xl: 'rounded-xl',
+2 -2
View File
@@ -43,8 +43,8 @@
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
<div
role="dialog"
class="overflow-hidden fixed top-0 left-0 w-screen h-screen z-[100]
flex flex-col items-center justify-center backdrop-blur-sm
class="overflow-hidden fixed top-0 left-0 w-screen h-screen z-100
flex flex-col items-center justify-center backdrop-blur-xs
bg-white/50 dark:bg-black/50 box-border p-4"
transition:fade|global={{ duration: 100 }}
onclick={(e) => {
+4 -4
View File
@@ -33,8 +33,8 @@
{#if route.children}
<Button
class="{depth > 0 ? 'pl-6' : ''} {route.url == currentRoute
? 'border-t-0 border-r-0 border-b-0 border-l !border-slate-900 dark:!border-zinc-50'
: 'border-t-0 border-r-0 border-b-0 border-l !border-slate-300 dark:!border-zinc-700'} rounded-l-none {depth ==
? 'border-t-0 border-r-0 border-b-0 border-l border-slate-900! dark:border-zinc-50!'
: 'border-t-0 border-r-0 border-b-0 border-l border-slate-300! dark:border-zinc-700!'} rounded-l-none {depth ==
0
? 'mt-2'
: ''} font-bold"
@@ -59,8 +59,8 @@
size="lg"
class="{depth > 1 ? 'pl-12' : depth > 0 ? 'pl-6' : ''} {route.url ==
currentRoute
? 'border-t-0 border-r-0 border-b-0 border-l !border-slate-950 dark:!border-zinc-50'
: 'border-t-0 border-r-0 border-b-0 border-l !border-slate-300 dark:!border-zinc-700'} font-normal rounded-l-none"
? 'border-t-0 border-r-0 border-b-0 border-l border-slate-950! dark:border-zinc-50!'
: 'border-t-0 border-r-0 border-b-0 border-l border-slate-300! dark:border-zinc-700!'} font-normal rounded-l-none"
>
{route.name}
</Button>
+1 -1
View File
@@ -15,7 +15,7 @@
<Material
padding="none"
color="uniform"
class="flex flex-row space-x-2 items-center px-4 py-3 !rounded-3xl {clazz}"
class="flex flex-row space-x-2 items-center px-4 py-3 rounded-3xl! {clazz}"
>
<Icon
src={InformationCircle}
+1 -1
View File
@@ -54,7 +54,7 @@
{#snippet popover()}
<div
class="w-full max-w-[280px] origin-top-left
max-h-[32rem] overflow-auto list-none shadow-lg rounded-2xl"
max-h-128 overflow-auto list-none shadow-lg rounded-2xl"
>
<div
class="flex flex-col py-2 list-none bg-white/80 dark:bg-zinc-900/90 px-2 gap-px
+2 -2
View File
@@ -39,7 +39,7 @@
class="w-full px-2 rounded-lg min-h-8 font-normal {disabled
? 'opacity-70 pointer-events-none cursor-not-allowed'
: ''} {color == 'tertiary'
? 'hover:dark:bg-zinc-800/70'
? 'dark:hover:bg-zinc-800/70'
: ''} duration-100 {clazz}"
{alignment}
{href}
@@ -50,7 +50,7 @@
class="contents {color == 'tertiary'
? 'text-slate-600 dark:text-zinc-400'
: ''}
flex-shrink-0"
shrink-0"
>
{#if icon}
<Icon src={icon} micro size="16" />
+1 -1
View File
@@ -13,6 +13,6 @@
>
<div>{@render children?.()}</div>
<hr
class="flex-shrink flex-1 border-slate-200 dark:border-zinc-800 border-opacity-70"
class="shrink flex-1 border-slate-200 dark:border-zinc-800 border-opacity-70"
/>
</div>
+2 -2
View File
@@ -131,10 +131,10 @@
{/if}
{#if open}
<Portal class="z-[150]">
<Portal class="z-150">
<div
transition:scale={{ duration: 300, start: 0.97, easing: expoOut }}
class="z-[150] {popoverClass}"
class="z-150 {popoverClass}"
use:customFloatingContent
use:focusTrap
bind:this={popoverEl}
+4 -4
View File
@@ -32,14 +32,14 @@
}}
>
{#if toast.loading}
<div class="relative m-2 ml-4 flex-shrink-0">
<div class="relative m-2 ml-4 shrink-0">
<Spinner width={20} />
</div>
{:else}
<Icon
size="20"
mini
class="relative m-2 ml-4 flex-shrink-0"
class="relative m-2 ml-4 shrink-0"
src={toast.type == 'info'
? InformationCircle
: toast.type == 'success'
@@ -64,7 +64,7 @@
toast.action?.()
toasts.update((toasts) => toasts.filter((t) => t.id != toast.id))
}}
class="rounded-lg w-max transition-colors hover:bg-black/20 hover:dark:bg-white/20 p-2"
class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2"
>
<Icon src={Check} size="16" mini />
</button>
@@ -73,7 +73,7 @@
onclick={() => {
toasts.update((toasts) => toasts.filter((t) => t.id != toast.id))
}}
class="rounded-lg w-max transition-colors hover:bg-black/20 hover:dark:bg-white/20 p-2"
class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2"
>
<Icon src={XMark} size="16" mini />
</button>
+2 -2
View File
@@ -6,8 +6,8 @@
</script>
<div
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-[200] p-4
group overflow-hidden h-screen min-w-[24rem] pointer-events-none gap-4"
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-200 p-4
group overflow-hidden h-screen min-w-96 pointer-events-none gap-4"
>
{#each $toasts as toast, index (toast.id)}
<div
+4 -4
View File
@@ -99,7 +99,7 @@ interface Settings {
useRtl: boolean
parseTags: boolean
tagRules: {
[key: string]: 'hide' | 'blur'
[key: string]: 'hide' | 'blur-sm'
}
logoColorMonth: number | null
}
@@ -178,9 +178,9 @@ export const defaultSettings: Settings = {
useRtl: false,
parseTags: true,
tagRules: {
cw: 'blur',
nsfl: 'blur',
nsfw: 'blur',
cw: 'blur-sm',
nsfl: 'blur-sm',
nsfw: 'blur-sm',
},
logoColorMonth: null,
}