design: use consistent border radii and colors for postactions

This commit is contained in:
James (Xylight) committed 2025-11-30 00:27:39 -08:00
1 parent 69c2ea904f
commit a3ff87ebc4
3 files changed
+10 -16

No files matched your search

+2 -2
View File
@@ -30,9 +30,9 @@
--> -->
{#if embed_title && view == 'cozy'} {#if embed_title && view == 'cozy'}
<Material <Material
color="uniform" color="default"
class={[ class={[
'post-link group/link hover:bg-slate-50 hover:dark:bg-zinc-900 transition-colors', 'post-link group/link hover:bg-slate-50 hover:dark:bg-zinc-800 transition-colors',
]} ]}
rounding="2xl" rounding="2xl"
element="a" element="a"
+2 -2
View File
@@ -137,8 +137,8 @@
)} )}
<div <div
class={[ class={[
buttonColor.ghost, buttonColor.secondary,
'rounded-full h-full font-medium flex relative hover:bg-transparent!', 'rounded-xl h-full font-medium flex relative hover:bg-transparent! shadow-xs',
voteRatio < 85 && settings.voteRatioBar && 'vote-ratio', voteRatio < 85 && settings.voteRatioBar && 'vote-ratio',
]} ]}
aria-label={$t('aria.vote.group')} aria-label={$t('aria.vote.group')}
@@ -125,8 +125,7 @@
size="custom" size="custom"
href="{postLink(post.post)}#comments" href="{postLink(post.post)}#comments"
class="text-inherit! h-full px-3 relative" class="text-inherit! h-full px-3 relative"
color="ghost" rounding="xl"
rounding="pill"
target={settings.openLinksInNewTab ? '_blank' : ''} target={settings.openLinksInNewTab ? '_blank' : ''}
aria-label={$t('post.actions.comments')} aria-label={$t('post.actions.comments')}
> >
@@ -152,8 +151,7 @@
onclick={() => (debug = true)} onclick={() => (debug = true)}
title="Debug" title="Debug"
size="custom" size="custom"
color="ghost" rounding="xl"
rounding="pill"
class={buttonSquare} class={buttonSquare}
icon={BugAnt} icon={BugAnt}
></Button> ></Button>
@@ -165,8 +163,7 @@
<Button <Button
{@attach attachment} {@attach attachment}
size="custom" size="custom"
color="ghost" rounding="xl"
rounding="pill"
loading={acting} loading={acting}
class={buttonSquare} class={buttonSquare}
> >
@@ -187,8 +184,7 @@
}} }}
size="custom" size="custom"
class={buttonSquare} class={buttonSquare}
color="ghost" rounding="xl"
rounding="pill"
loading={saving} loading={saving}
disabled={saving} disabled={saving}
title={post.saved ? $t('post.actions.unsave') : $t('post.actions.save')} title={post.saved ? $t('post.actions.unsave') : $t('post.actions.save')}
@@ -200,8 +196,7 @@
{#snippet target(attachment)} {#snippet target(attachment)}
<Button <Button
{@attach post.post.local ? () => {} : attachment} {@attach post.post.local ? () => {} : attachment}
rounding="pill" rounding="xl"
color="ghost"
size="custom" size="custom"
class={buttonSquare} class={buttonSquare}
onclick={() => { onclick={() => {
@@ -241,8 +236,7 @@
<Button <Button
{@attach popover} {@attach popover}
title={$t('post.actions.more.label')} title={$t('post.actions.more.label')}
color="ghost" rounding="xl"
rounding="pill"
size="custom" size="custom"
class={buttonSquare} class={buttonSquare}
icon={EllipsisHorizontal} icon={EllipsisHorizontal}