Skip to content

Commit

Permalink
#1757 - Adjusted the code for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sh16011993 committed Mar 21, 2023
1 parent 19894e8 commit 4a93e69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<template>
<div class="mb-5">
<v-card v-if="enableCardView">
<v-container><slot name="header"></slot><slot></slot></v-container>
<v-container>
<slot name="header"></slot>
<slot></slot>
</v-container>
</v-card>
<div v-else><slot name="header"></slot><slot></slot></div>
<div v-else>
<slot name="header"></slot>
<slot></slot>
</div>
</div>
</template>

Expand Down
4 changes: 3 additions & 1 deletion sources/packages/web/src/components/layouts/TabContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="mt-8">
<!-- Default slot (with and without v-card) -->
<v-card v-if="enableCardView">
<v-container><slot></slot></v-container>
<v-container>
<slot></slot>
</v-container>
</v-card>
<slot v-else></slot>
</div>
Expand Down

0 comments on commit 4a93e69

Please sign in to comment.