diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 95c55f5..6723982 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -64,4 +64,22 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +/* 修复按钮图标与文本的垂直对齐 */ +.ant-btn { + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; +} + +.ant-btn .anticon { + display: inline-flex !important; + align-items: center !important; + line-height: 1 !important; +} + +.ant-btn > span { + display: inline-flex !important; + align-items: center !important; +} diff --git a/frontend/src/components/Navbar.vue b/frontend/src/components/Navbar.vue index 02cef57..b38c8b3 100644 --- a/frontend/src/components/Navbar.vue +++ b/frontend/src/components/Navbar.vue @@ -1,5 +1,14 @@