Skip to content

Commit bc50646

Browse files
committed
fix(frontEnd): 修复旋转动画与调整关于页样式
- 修复旋转动画,仅旋转图标而非容器 - 更新图标伪元素应用旋转动画效果 - 移除关于页面最大宽度限制 - 删除关于页面容器的自动外边距 - 添加关于页面容器的内边距清除调整
1 parent 74c11f0 commit bc50646

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/frontEnd/src/components/StatCard.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ defineEmits<{
5757
color: var(--p-primary-color);
5858
}
5959
60+
/* 修复旋转动画:只旋转图标本身,不旋转容器 */
61+
.stat-content > i.pi-spin {
62+
animation: none;
63+
}
64+
65+
.stat-content > i.pi-spin::before {
66+
display: inline-block;
67+
animation: fa-spin 2s linear infinite;
68+
}
69+
6070
.stat-info {
6171
display: flex;
6272
flex-direction: column;

src/frontEnd/src/views/About/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ function openLink(url: string) {
310310
<style scoped lang="scss">
311311
.about-container {
312312
width: 100%;
313-
max-width: 1000px;
314-
margin: 0 auto;
313+
margin: 0;
314+
padding: 0;
315315
}
316316
317317
.page-title {

0 commit comments

Comments
 (0)