Skip to content

Commit cde44b2

Browse files
committed
Bottom-aligning list buttons
1 parent e7f11cc commit cde44b2

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

src/components/CategoryListEvent.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,24 @@
5252
class="icon"
5353
/>
5454

55-
<CategoryListEventPreview
56-
:json="json"
57-
/>
55+
<p>{{ json.description }}</p>
5856

59-
<button @click="selectList">
60-
Select
61-
</button>
57+
<div class="button-group">
58+
<CategoryListEventPreview
59+
:json="json"
60+
/>
6261

63-
<p>{{ json.description }}</p>
62+
<button @click="selectList">
63+
Select
64+
</button>
65+
</div>
6466
</li>
6567
</template>
6668

6769
<style scoped>
6870
.category-list {
71+
display: flex;
72+
flex-direction: column;
6973
padding: 0.8em;
7074
text-align: center;
7175
background-color: color-mix(in srgb, var(--background-color) 40%, var(--custom-color));
@@ -78,7 +82,10 @@
7882
7983
.icon {
8084
margin: 0 auto;
81-
margin-bottom: 0.8em;
85+
}
86+
87+
.button-group {
88+
margin-top: auto;
8289
}
8390
8491
button {

0 commit comments

Comments
 (0)