hugray-admin/src/layout/components/HeaderNotice/index.vue
@@ -107,12 +107,16 @@ <style lang="scss" scoped> .notice-trigger { position: relative; transform: translateX(-6px); .svg-icon { width: 1.2em; height: 1.2em; vertical-align: -0.2em; } display: flex; align-items: center; justify-content: center; /* 顶栏图标在 30px 圆形按钮内居中,行高需归零(否则继承 .right-menu 的 50px 使盒子溢出圆形) */ line-height: 1; .svg-icon { width: 1.2em; height: 1.2em; } .notice-badge { position: absolute; top: 7px; right: -3px; top: -6px; right: -8px; background: #f56c6c; color: #fff; border-radius: 10px;