Skip to content

Commit

Permalink
wip: Allow to declare sections within a KCard #957
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Sep 28, 2024
1 parent 8f9d1c6 commit 373b163
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions core/client/components/collection/KCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,23 @@
class="full-width no-wrap"
/>
</div>
<!-- Expand action -->
<div v-if="isExpandable" class="row justify-center">
<KAction
id="expand-action"
icon="las la-angle-down"
tooltip="KCard.MORE_DETAILS"
:toggle="{ icon: 'las la-angle-up', tooltip: 'KCard.LESS_DETAILS', color: 'grey-7' }"
:size="dense ? 'xs' : 'sm'"
dense
@triggered="onExpandTriggered"
/>
</div>
<!-- Extra bottom padding if no expand action -->
<div v-else :class="{ 'q-pt-xs': dense, 'q-pt-sm': !dense }" />
</div>
<!--
Expand action
-->
<div v-if="isExpandable" class="row justify-center">
<KAction
id="expand-action"
icon="las la-angle-down"
tooltip="KCard.MORE_DETAILS"
:toggle="{ icon: 'las la-angle-up', tooltip: 'KCard.LESS_DETAILS', color: 'grey-7' }"
:size="dense ? 'xs' : 'sm'"
dense
@triggered="onExpandTriggered"
/>
</div>
<!-- Extra bottom padding if no expand action -->
<div v-else :class="{ 'q-pt-xs': dense, 'q-pt-sm': !dense }" />
</q-card>
</template>

Expand Down

0 comments on commit 373b163

Please sign in to comment.