Skip to content

Commit d92c6f5

Browse files
committed
fix: category btn tap range
1 parent cec99e6 commit d92c6f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

layouts/Category.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,12 @@ export default {
101101
.category-item {
102102
vertical-align: middle;
103103
margin: 4px 8px 10px;
104-
padding: 8px 14px;
105104
display: inline-block;
106105
cursor: pointer;
107106
border-radius: 2px;
108107
font-size: 13px;
109108
box-shadow 0 1px 4px 0 rgba(0,0,0,0.2)
110-
transition: all .5s
109+
transition: all .5s
111110
&:hover, &.active {
112111
background $accentColor
113112
a span.category-name {
@@ -117,9 +116,12 @@ export default {
117116
}
118117
}
119118
}
120-
121119
a {
122120
display flex
121+
box-sizing border-box
122+
width 100%
123+
height 100%
124+
padding: 8px 14px;
123125
justify-content: space-between
124126
align-items center
125127
color: #666

0 commit comments

Comments
 (0)