Skip to content

Commit 4cf963e

Browse files
committed
Fix ToolCard bookmark button icon alignment
1 parent 2787892 commit 4cf963e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib/components/global/ToolCard.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
on:click={toggleBookmark}
6868
aria-label={isBookmarked ? 'Remove bookmark' : 'Add bookmark'}
6969
>
70+
<div class="bookmark-icon">
7071
{#if isBookmarked}
7172
{#if isHovered}
7273
<Icon name="bookmark-remove" size="sm" />
@@ -77,6 +78,7 @@
7778
<Icon name="bookmark-add" size="md" />
7879
{/if}
7980
<!-- <Icon name={isBookmarked ? 'bookmark-remove' : 'bookmark-add'} size="sm" /> -->
81+
</div>
8082
</button>
8183
{/if}
8284
</div>
@@ -195,6 +197,7 @@
195197
background: var(--surface-hover);
196198
color: var(--color-success);
197199
transform: scale(1.15);
200+
border-radius: 100%;
198201
199202
&::before {
200203
width: 100%;
@@ -206,6 +209,12 @@
206209
transform: scale(0.95);
207210
}
208211
212+
& .bookmark-icon {
213+
display: flex;
214+
width: fit-content;
215+
height: fit-content;
216+
}
217+
209218
&.bookmarked {
210219
color: var(--text-secondary);
211220
opacity: 1;

0 commit comments

Comments
 (0)