I have created layout with flexbox and vuetify, where card contains header and footer, and scrollable content between them.
Here is current code in codepen:
https://codepen.io/peter-peter-the-typescripter/pen/poyZmEm?editors=1010
I need fit card (including paddings of container) in height to remove scrollbar of main page. Can you tell me how to edit code to ensure that? Thank you.
code:
<div id="app">
<v-app id="inspire">
<v-container fluid style="height: 100%;">
<v-row style="height: 100%">
<v-col>
<v-card>
<v-row no-gutters style="height: 100%">
<v-col class="no-gutters red" style="height: 100%; max-height: 100vh; flex-direction: column; display: flex;" cols="4">
<!-- header -->
<div style="flex-shrink: 0">
<v-toolbar>
<v-toolbar-title>
Toolbar Left
</v-toolbar-title>
</v-toolbar>
</div>
<!-- Scrollable area -->
<div style="flex: 1; overflow-y: auto;">
<v-list>
<template v-for="item in 30">
<v-list-item :key="item">
<v-list-item-content>
<v-list-item-title v-html="'title ' + item"></v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
</v-list>
</div>
<!-- footer -->
<div style="flex-shrink: 0">
<v-btn>Click me</v-btn>
</div>
</v-col>
</v-row>
</v-card>
</v-col>
</v-row>
</v-container>
</v-app>
</div>

