File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/lib/components/global Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 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" />
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 >
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% ;
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 ;
You can’t perform that action at this time.
0 commit comments