Skip to content

Commit 0fe9d60

Browse files
committed
perf: dashboard 页面占位图自适应宽度
1 parent 86ec976 commit 0fe9d60

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/pages/dashboard/components/Admin.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import SvgAdmin from "../images/admin.svg?component" // vite-svg-loader 插件
55
<template>
66
<div class="app-container center">
77
<SvgAdmin class="svg" />
8-
<p>欢迎来到 Admin 角色专属首页</p>
8+
<p>欢迎来到Admin角色专属首页</p>
99
</div>
1010
</template>
1111
@@ -17,6 +17,7 @@ import SvgAdmin from "../images/admin.svg?component" // vite-svg-loader 插件
1717
align-items: center;
1818
.svg {
1919
width: 600px;
20+
max-width: 100%;
2021
}
2122
}
2223
</style>

src/pages/dashboard/components/Editor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import SvgEditor from "../images/editor.svg?component" // vite-svg-loader 插件
55
<template>
66
<div class="app-container center">
77
<SvgEditor class="svg" />
8-
<p>欢迎来到 Editor 角色专属首页</p>
8+
<p>欢迎来到Editor角色专属首页</p>
99
</div>
1010
</template>
1111
@@ -17,6 +17,7 @@ import SvgEditor from "../images/editor.svg?component" // vite-svg-loader 插件
1717
align-items: center;
1818
.svg {
1919
width: 600px;
20+
max-width: 100%;
2021
}
2122
}
2223
</style>

0 commit comments

Comments
 (0)