reorganize CrewHeader for full-width belowTitle
This commit is contained in:
parent
76484b7bb0
commit
60b31e2a71
1 changed files with 33 additions and 18 deletions
|
|
@ -23,6 +23,7 @@
|
|||
</script>
|
||||
|
||||
<div class="section-header">
|
||||
<div class="header-top-row">
|
||||
<div class="header-info">
|
||||
<div class="title-row">
|
||||
{#if backHref}
|
||||
|
|
@ -36,9 +37,6 @@
|
|||
{#if description}
|
||||
<p class="header-description">{description}</p>
|
||||
{/if}
|
||||
{#if belowTitle}
|
||||
{@render belowTitle()}
|
||||
{/if}
|
||||
</div>
|
||||
{#if actions}
|
||||
<div class="header-actions">
|
||||
|
|
@ -46,6 +44,12 @@
|
|||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if belowTitle}
|
||||
<div class="header-below">
|
||||
{@render belowTitle()}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@use '$src/themes/spacing' as spacing;
|
||||
|
|
@ -53,18 +57,29 @@
|
|||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: spacing.$unit;
|
||||
padding: spacing.$unit-2x;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.header-top-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.header-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: spacing.$unit;
|
||||
}
|
||||
|
||||
.header-below {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
Loading…
Reference in a new issue