From f9b73851f3f59b0b1d95912562e10eaf8ed248d0 Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Wed, 15 Apr 2026 17:14:43 +0200 Subject: [PATCH] SubtitledImage now respects image width; ImageSubtitle now centers its content --- src/lib/components/callout.svelte | 100 ---------------------- src/lib/components/outlined-button.svelte | 34 -------- src/lib/components/reaction-quote.svelte | 2 +- src/lib/components/subtitled-image.svelte | 8 +- src/lib/image-subtitle.svelte | 3 +- src/lib/lists/blog-gallery.svelte | 2 +- src/routes/+layout.svelte | 6 +- src/routes/blog/2026/0317.md | 11 +-- src/routes/blog/2026/0402.md | 19 ++-- 9 files changed, 20 insertions(+), 165 deletions(-) delete mode 100644 src/lib/components/callout.svelte delete mode 100644 src/lib/components/outlined-button.svelte diff --git a/src/lib/components/callout.svelte b/src/lib/components/callout.svelte deleted file mode 100644 index e6827d7..0000000 --- a/src/lib/components/callout.svelte +++ /dev/null @@ -1,100 +0,0 @@ - - -{#snippet calloutContent()} -

- {#if type == "quote"} - ยป - {:else if type == "info"} - i - {:else} - ! - {/if} -

-
- {#each content as p} - {#if type == "quote"} -

"{@html p}"

- {:else} -

{@html p}

- {/if} - {/each} -
-{/snippet} - -{#if type == "quote"} -
- {@render calloutContent()} -
-{:else if type == "info"} -
- {@render calloutContent()} -
-{:else} -
- {@render calloutContent()} -
-{/if} - - \ No newline at end of file diff --git a/src/lib/components/outlined-button.svelte b/src/lib/components/outlined-button.svelte deleted file mode 100644 index 9dcbecc..0000000 --- a/src/lib/components/outlined-button.svelte +++ /dev/null @@ -1,34 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/lib/components/reaction-quote.svelte b/src/lib/components/reaction-quote.svelte index 20ef9c5..4cbb85c 100644 --- a/src/lib/components/reaction-quote.svelte +++ b/src/lib/components/reaction-quote.svelte @@ -27,7 +27,7 @@
{getReactionAlt(reaction)} -

{text}

+

{@html text}

diff --git a/src/lib/components/subtitled-image.svelte b/src/lib/components/subtitled-image.svelte index a98cfc2..c4536ae 100644 --- a/src/lib/components/subtitled-image.svelte +++ b/src/lib/components/subtitled-image.svelte @@ -69,8 +69,8 @@ } .subtitled-img-container-centred { - width: var(--media-width); - /* width: fit-content; */ + max-width: var(--media-width); + width: fit-content; margin-left: auto; margin-right: auto; } @@ -80,7 +80,9 @@ } .subtitled-img { - width: 100%; + max-width: 100%; + /* margin: 0; */ + width: fit-content; box-sizing: border-box; padding: 8px; overflow: hidden; diff --git a/src/lib/image-subtitle.svelte b/src/lib/image-subtitle.svelte index 3443508..94d6a12 100644 --- a/src/lib/image-subtitle.svelte +++ b/src/lib/image-subtitle.svelte @@ -15,7 +15,8 @@ .image-subtitle-container { display: flex; flex-direction: row; - width: var(--media-width); + justify-content: center; + max-width: var(--media-width); margin: 0 auto; } diff --git a/src/lib/lists/blog-gallery.svelte b/src/lib/lists/blog-gallery.svelte index 8e57b1c..03cc2d3 100644 --- a/src/lib/lists/blog-gallery.svelte +++ b/src/lib/lists/blog-gallery.svelte @@ -19,7 +19,7 @@

:: {post.post.date} {#if post.post.dateUpdated} - // {post.post.dateUpdated} + // {post.post.dateUpdated} {/if}

{post.post.description}

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7ab4357..9a0e252 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -120,10 +120,6 @@ --color-link-visited: #ffd7f0; --color-link-hovered: #ffdad5; - --color-callout-warn: var(--color-highlight-alt); - --color-callout-quote: #354CBE; - --color-callout-info: #AC7F31; - /* blurs */ --blur-radius-background: 6px; @@ -310,7 +306,7 @@ video { max-width: var(--media-width); - height: var(--media-height); + /* height: var(--media-height); */ margin-top: 12px; margin-bottom: 12px; } diff --git a/src/routes/blog/2026/0317.md b/src/routes/blog/2026/0317.md index 6562072..b7f66d3 100644 --- a/src/routes/blog/2026/0317.md +++ b/src/routes/blog/2026/0317.md @@ -1,13 +1,10 @@ -Note: as I'm constantly learning new things, this blog post is sort of outdated now. The information is still correct, but it feels inefficient and leads into a dead-end. I dislike this, as I wanted to write a guide that provides an expandable base. Therefore, I'll likely either update or replace this article and trim it down to focus on the important bits.", - "Expect a Go API.", - ]} + *Hey!* diff --git a/src/routes/blog/2026/0402.md b/src/routes/blog/2026/0402.md index ab4f9c5..a88f3fe 100644 --- a/src/routes/blog/2026/0402.md +++ b/src/routes/blog/2026/0402.md @@ -1,18 +1,13 @@ fuck i'm so sick of this shit. i need to incoherently ramble about this - @@ -52,11 +47,9 @@ I may delete my Bluesky account over this. It would be a bit of a shame because ## horny men and conservatives are pathetic -content warning: abuse of women. also, discussion of conservative behaviour. click here to skip.", - ]} + In Germany, the name Collien Fernandes has been making its rounds [in the media](https://www.tagesschau.de/inland/gesellschaft/deepfakes-ki-strafrecht-collien-fernandes-christian-ulmen-100.html). It's about Fernandes' ex spreading pornographic material of her on the internet. This has led to a discussion about deepfake pornography on the internet.