Skip to content

Commit 5171926

Browse files
committed
Update site update block layout
1 parent 2e17fc7 commit 5171926

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

www/src/lib/components/icons/icon-document-add.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<svg
2-
width="24"
3-
height="24"
2+
width="18"
3+
height="18"
44
viewBox="0 0 24 24"
55
fill="none"
66
xmlns="http://www.w3.org/2000/svg"

www/src/lib/components/icons/icon-photo.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<svg
2-
width="24"
3-
height="24"
2+
width="18"
3+
height="18"
44
viewBox="0 0 24 24"
55
fill="none"
66
xmlns="http://www.w3.org/2000/svg"

www/src/lib/components/relative-date.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ let relativeDate =
2020
.trimEnd()
2121
</script>
2222

23-
<time class="text-grey-400 text-xs" datetime={formatISO(datestamp)}
23+
<time class="text-grey-400 leading-trim text-xs" datetime={formatISO(datestamp)}
2424
>{relativeDate}</time
2525
>

www/src/lib/components/update.svelte

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)