From a0e7d979674ef6f583aeef14fccbf80fc59a7b32 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:44:17 +0200 Subject: [PATCH] Fixed recorder pages --- src/components/AppLayout/AsideLayout.astro | 29 ++++++++++++++-------- src/pages/[locale]/recorders/[id].astro | 20 ++++++--------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/components/AppLayout/AsideLayout.astro b/src/components/AppLayout/AsideLayout.astro index 9c5403f..170d2f9 100644 --- a/src/components/AppLayout/AsideLayout.astro +++ b/src/components/AppLayout/AsideLayout.astro @@ -22,27 +22,34 @@ default slot interface Props { reducedAsideWidth?: boolean; - withAside?: boolean | undefined; } -const { reducedAsideWidth = false, withAside = true } = Astro.props; +const { reducedAsideWidth = false } = Astro.props; ---
-
- - - -
-
- -
+ { + (Astro.slots.has("header-aside") || Astro.slots.has("meta") || Astro.slots.has("aside")) && ( +
+ + + +
+ ) + } + { + Astro.slots.has("meta") && ( +
+ +
+ ) + }
{ - withAside && ( + (Astro.slots.has("header-aside") || Astro.slots.has("aside")) && ( diff --git a/src/pages/[locale]/recorders/[id].astro b/src/pages/[locale]/recorders/[id].astro index 3600792..1c9626f 100644 --- a/src/pages/[locale]/recorders/[id].astro +++ b/src/pages/[locale]/recorders/[id].astro @@ -40,15 +40,15 @@ if (languages.length > 0) { {/* ------------------------------------------- HTML ------------------------------------------- */} - - 0}> + + - + { avatar && ( - + @@ -66,20 +66,14 @@ if (languages.length > 0) { { avatar && additionalAttributes.length > 0 && ( - + 0 && "aside"}> ) } -
- { - !avatar && additionalAttributes.length > 0 && ( - - ) - } - {biography && } -
+ {!avatar && additionalAttributes.length > 0 && } + {biography && }