@@ -38,13 +38,13 @@ function handleCardPress(event) {
3838 if (event .target !== link) link .click ()
3939}
4040
41- const SvelteComponent = $derived (iconMap[type])
41+ const IconComponent = $derived (iconMap[type])
4242 </script >
4343
4444<!-- svelte-ignore a11y_click_events_have_key_events -->
4545<!-- svelte-ignore a11y_no_noninteractive_element_to_interactive_role -->
4646<article
47- class ="salt group relative grid grid-cols-[36px_1fr_auto ] gap-2 rounded-[1px] font-sans {FOCUS_OUTLINE } outline-offset-8"
47+ class ="salt group relative grid grid-cols-[32px_1fr_auto ] gap-2 rounded-[1px] py-3 text-sm {FOCUS_OUTLINE } outline-offset-8"
4848 class:cursor-pointer ={type !== ' note-add' }
4949 class:focus-within:outline ={type !== ' note-add' }
5050 bind:this ={card }
@@ -55,13 +55,15 @@ const SvelteComponent = $derived(iconMap[type])
5555 class =" bg-grey-700 absolute -inset-2 -z-10 rounded-md bg-opacity-0 transition"
5656 class:group-hover:bg-opacity- 20={type !== ' note-add' }
5757 ></div >
58- <div
59- class =" bg-grey-700 flex h-9 w-9 items-center justify-center rounded-full text-white"
60- >
61- <SvelteComponent />
58+ <div class =" flex h-[1cap] items-center" >
59+ <div
60+ class =" bg-grey-700 flex h-8 w-8 items-center justify-center rounded-full text-white"
61+ >
62+ <IconComponent />
63+ </div >
6264 </div >
63- <div class =" py-3 " >
64- <p class =" text-grey-400 leading-trim text-base " >
65+ <div class =" flex items-center " >
66+ <p class =" text-grey-400 leading-trim" >
6567 {#if type === ' gallery-add' }
6668 Added a gallery of <a
6769 class =" font-medium text-white underline decoration-[transparent] decoration-[0.0781em] underline-offset-[calc(0.0781em_*_2)] outline-none transition group-hover:decoration-white"
@@ -82,7 +84,7 @@ const SvelteComponent = $derived(iconMap[type])
8284 {/if }
8385 </p >
8486 </div >
85- <div class =" text-grey-400 flex h-9 items-center" >
87+ <div class =" text-grey-400 flex items-center text-xs " >
8688 {#if type === ' note-add' }
8789 <a
8890 class ="rounded-[1px] underline decoration-[transparent] decoration-[0.0781em] underline-offset-[calc(0.0781em_*_2)] transition hover:decoration-[inherit] {FOCUS_OUTLINE }"
@@ -98,7 +100,7 @@ const SvelteComponent = $derived(iconMap[type])
98100 {#if hasPreview }
99101 <div class =" col-span-2 col-start-2" >
100102 {#if type === ' gallery-add' }
101- <div class =" flex gap-2 overflow-x-auto" >
103+ <div class =" flex gap-2 overflow-x-auto py-2 " >
102104 {#each images as image }
103105 <div class =" flex h-20 w-20 flex-none" >
104106 <img
0 commit comments