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