From d92c6f5d03ca725ab62b74afa786cc4f4b420a9b Mon Sep 17 00:00:00 2001 From: reco_luan Date: Fri, 23 Aug 2019 19:58:47 +0800 Subject: [PATCH] fix: category btn tap range --- layouts/Category.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/Category.vue b/layouts/Category.vue index e6479b6..8266a0c 100644 --- a/layouts/Category.vue +++ b/layouts/Category.vue @@ -101,13 +101,12 @@ export default { .category-item { vertical-align: middle; margin: 4px 8px 10px; - padding: 8px 14px; display: inline-block; cursor: pointer; border-radius: 2px; font-size: 13px; box-shadow 0 1px 4px 0 rgba(0,0,0,0.2) - transition: all .5s + transition: all .5s &:hover, &.active { background $accentColor a span.category-name { @@ -117,9 +116,12 @@ export default { } } } - a { display flex + box-sizing border-box + width 100% + height 100% + padding: 8px 14px; justify-content: space-between align-items center color: #666