diff options
author | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-06-28 22:47:26 -0300 |
---|---|---|
committer | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-06-28 22:47:26 -0300 |
commit | 748149806d5b415e4b9343ae5c4a04523f61be22 (patch) | |
tree | 31c1e2011466c1008b08cb4830d83e5f9e6a39d5 /src/components/templates | |
parent | 12227e4a8b4fd22b663f839142bc0bc994b0543b (diff) |
fix: html errors
Diffstat (limited to 'src/components/templates')
-rw-r--r-- | src/components/templates/MicroBlog.astro | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/components/templates/MicroBlog.astro b/src/components/templates/MicroBlog.astro index b7019c5..c16155e 100644 --- a/src/components/templates/MicroBlog.astro +++ b/src/components/templates/MicroBlog.astro @@ -37,12 +37,12 @@ const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); /></small> </div> </header> - <div class="content"> - <small {lang}> + <div class="content small"> + <div {lang}> <Fragment set:html={rendered?.html} /> - </small> + </div> <footer> - <div class="keywords small"><KeywordsList {keywords} /></div> + <div class="keywords"><KeywordsList {keywords} /></div> </footer> </div> <aside> @@ -50,14 +50,6 @@ const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); </aside> </article> -<style is:inline> - .content > [lang] > *:first-child { - margin-block-start: 0; - } - .content > [lang] > *:last-child { - margin-block-end: 0; - } -</style> <style> article { border-radius: calc(var(--size-1) * 1em); @@ -106,6 +98,12 @@ const little = ((first?.[0] ?? "") + (last?.[0] ?? "")).slice(0, 2); .content { grid-row: 2/3; grid-column: 2 / 3; + & > [lang] > :global(*:first-child) { + margin-block-start: 0; + } + & > [lang] > :global(*:last-child) { + margin-block-end: 0; + } } .keywords { |