Skip to content

Commit 52c9b78

Browse files
authored
Fix conversation sorting button's line height (#174)
1 parent 27fd47d commit 52c9b78

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

services/agora/src/components/post/views/CommentSortingSelector.vue

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<template>
22
<div>
33
<ZKButton button-type="standardButton" @click="showDialog = true">
4-
<div class="buttonText gradientFont">
5-
{{ currentFilterAlgorithm }}
6-
<q-icon
7-
name="mdi-chevron-down"
8-
size="1.3rem"
9-
class="iconStyle gradientFont"
10-
/>
4+
<div class="buttonGrid gradientFont">
5+
<div class="buttonItem">{{ currentFilterAlgorithm }}</div>
6+
7+
<div class="buttonItem">
8+
<q-icon
9+
name="mdi-chevron-down"
10+
size="1.3rem"
11+
class="iconStyle gradientFont"
12+
/>
13+
</div>
1114
</div>
1215
</ZKButton>
1316

@@ -135,9 +138,18 @@ function selectedAlgorithm(filterValue: CommentFilterOptions) {
135138
font-weight: 500;
136139
}
137140
138-
.buttonText {
141+
.buttonGrid {
142+
display: grid;
143+
grid-template-columns: auto auto;
144+
grid-template-rows: 1fr;
145+
gap: 0px 0px;
146+
grid-template-areas: ". .";
147+
}
148+
149+
.buttonItem {
139150
font-weight: 500;
140151
display: flex;
141152
align-items: center;
153+
line-height: normal;
142154
}
143155
</style>

0 commit comments

Comments
 (0)