diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue index 16afcf2..e03609c 100644 --- a/src/components/Search/Search.vue +++ b/src/components/Search/Search.vue @@ -304,6 +304,8 @@ onBeforeUnmount(() => { white-space: nowrap; text-overflow: ellipsis; padding: 0 32px; + display: inline-flex; + align-items: center; } .medal { position: absolute; diff --git a/src/views/Index/Index.vue b/src/views/Index/Index.vue index a8cba57..95f9150 100644 --- a/src/views/Index/Index.vue +++ b/src/views/Index/Index.vue @@ -176,6 +176,8 @@ getActivityList(3).then(({ data }) => { white-space: nowrap; text-overflow: ellipsis; padding: 0 32px; + display: inline-flex; + align-items: center; } .medal {