Utilizing vue and quasar, I have created this component:
<template>
<q-layout>
<q-page-container style="background-color: #e0e5ea;">
<q-page class="column">
<menu-bar></menu-bar>
<div class="q-ma-lg row col">
<q-card flat class="col" style="border-radius: 9px;">
<q-card-section>
</q-card-section>
</q-card>
<q-card flat class="col q-ml-lg " style="border-radius: 9px">
<q-card-section>
</q-card-section>
</q-card>
</div>
</q-page>
</q-page-container>
</q-layout>
</template>
In my component, when the <q-card-section>
is empty, the <q-card>
fills the available height and remains responsive during zoom in or out. However, if I add content to the <q-card-section>
, such as multiple <user-account>
components, the q-card expands in size, causing the entire page to become scrollable. While I could use overflow:auto and set a specific height, it compromises the responsiveness of the page.
Is there a way to maintain the same behavior as before (when the content was empty), but also allow the q-card to be scrollable when additional elements are added?