Fix aside on Recorders without avatar
This commit is contained in:
parent
73dfc452cc
commit
47668e3b29
src
@ -22,9 +22,10 @@ default slot
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
reducedAsideWidth?: boolean;
|
reducedAsideWidth?: boolean;
|
||||||
|
withAside?: boolean | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { reducedAsideWidth = false } = Astro.props;
|
const { reducedAsideWidth = false, withAside = true } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<div id="layout" class:list={{ "reduced-width": reducedAsideWidth }}>
|
<div id="layout" class:list={{ "reduced-width": reducedAsideWidth }}>
|
||||||
@ -40,10 +41,14 @@ const { reducedAsideWidth = false } = Astro.props;
|
|||||||
</div>
|
</div>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
<Card class="when-large right">
|
{
|
||||||
<slot name="header-aside" />
|
withAside && (
|
||||||
<slot name="aside" />
|
<Card class="when-large right">
|
||||||
</Card>
|
<slot name="header-aside" />
|
||||||
|
<slot name="aside" />
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ------------------------------------------- CSS -------------------------------------------- */}
|
{/* ------------------------------------------- CSS -------------------------------------------- */}
|
||||||
|
@ -41,7 +41,7 @@ if (languages.length > 0) {
|
|||||||
{/* ------------------------------------------- HTML ------------------------------------------- */}
|
{/* ------------------------------------------- HTML ------------------------------------------- */}
|
||||||
|
|
||||||
<AppLayout>
|
<AppLayout>
|
||||||
<AsideLayout>
|
<AsideLayout withAside={avatar !== undefined && additionalAttributes.length > 0}>
|
||||||
<Fragment slot="header">
|
<Fragment slot="header">
|
||||||
<AppLayoutTitle pretitle={`Recorder#${id.substring(0, 5)}`} title={username} />
|
<AppLayoutTitle pretitle={`Recorder#${id.substring(0, 5)}`} title={username} />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user