I have HTML that looks like this:
<template>
<lightning-layout size="12"
multiple-rows="true"
vertical-align="stretch"
class="container-layout">
<lightning-layout-item flexibility="auto"
padding="around-small"
class="top-row"
size="7">
<lightning-card title="Prospects">
1
</lightning-card>
</lightning-layout-item>
<lightning-layout-item flexibility="auto"
padding="around-small"
class="top-row"
size="5">
<lightning-card title="Prospect Detail">
2
</lightning-card>
</lightning-layout-item>
<lightning-layout-item flexibility="auto"
padding="around-small"
class="bottom-row"
size="7">
<lightning-card>
<lightning-tabset>
<lightning-tab label="To Do">
tasks
</lightning-tab>
<lightning-tab label="My Schedule">
schedule
</lightning-tab>
<lightning-tab label="My Stats">
stats
</lightning-tab>
</lightning-tabset>
</lightning-card>
</lightning-layout-item>
<lightning-layout-item flexibility="auto"
padding="around-small"
class="bottom-row"
size="5">
<lightning-card>
<lightning-tabset>
<lightning-tab label="Chatter">
chatter
</lightning-tab>
<lightning-tab label="Activity">
activity
</lightning-tab>
</lightning-tabset>
</lightning-card>
</lightning-layout-item>
</lightning-layout>
</template>
Here's the current CSS:
.large {
height: 200px;
}
.container-layout {
height: 80vh;
}
.custom-box {
text-align: center;
background-color: #f4f6f9;
padding: 1rem;
border: 1px solid #d8dde6;
}
.top-row {
height: 70%;
}
.bottom-row {
height: 30%;
}
lightning-card {
height: auto;
max-height: 100%;
}
It produces the following rendered page:
What I'd like is for the tab groups and lightning cards to take the full vertical size of the enclosing layout items. How can I do this?