diff --git a/src/layout/components/TranscodeNoticeButton.vue b/src/layout/components/TranscodeNoticeButton.vue index 6bf6944..9581017 100644 --- a/src/layout/components/TranscodeNoticeButton.vue +++ b/src/layout/components/TranscodeNoticeButton.vue @@ -83,7 +83,9 @@ onBeforeUnmount(() => { } .notice-badge :deep(.el-badge__content.is-fixed) { - top: 8px; - right: 2px; + /* 角标中心骑在铃铛右上角:right 9px + 右移 50%,与位数宽度无关 */ + top: calc(50% - 9px); + right: 9px; + transform: translate(50%, -50%); }