Skip to content

Commit 0b8375a

Browse files
committed
refactor: CWidgetDropdown style changes
1 parent bc1cf95 commit 0b8375a

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/components/widgets/CWidgetDropdown.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template>
22
<div class="card" :class="`bg-${color} text-white`">
3-
<div class="card-body pb-0">
3+
<div class="card-body pb-0 d-flex justify-content-between">
4+
<div>
5+
<div v-if="header" class="text-value-lg">{{header}}</div>
6+
<div v-if="text">{{text}}</div>
7+
</div>
48
<slot></slot>
5-
<h4 v-if="header" class="mb-0">{{header}}</h4>
6-
<p v-if="text">{{text}}</p>
79
</div>
810
<slot name="footer"></slot>
911
</div>

src/components/widgets/tests/__snapshots__/CWidgetDropdown.spec.js.snap

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ exports[`CWidgetDropdown matches custom props snapshot 1`] = `
55
class="card bg-info text-white"
66
>
77
<div
8-
class="card-body pb-0"
8+
class="card-body pb-0 d-flex justify-content-between"
99
>
10+
<div>
11+
<div
12+
class="text-value-lg"
13+
>
14+
header
15+
</div>
16+
17+
<div>
18+
text
19+
</div>
20+
</div>
1021
11-
<h4
12-
class="mb-0"
13-
>
14-
header
15-
</h4>
16-
17-
<p>
18-
text
19-
</p>
2022
</div>
2123
2224
</div>
@@ -27,12 +29,14 @@ exports[`CWidgetDropdown matches default props snapshot 1`] = `
2729
class="card bg-undefined text-white"
2830
>
2931
<div
30-
class="card-body pb-0"
32+
class="card-body pb-0 d-flex justify-content-between"
3133
>
34+
<div>
35+
<!---->
36+
37+
<!---->
38+
</div>
3239
33-
<!---->
34-
35-
<!---->
3640
</div>
3741
3842
</div>

0 commit comments

Comments
 (0)