From 445e916574afbab7996879d62a68803c13539bf3 Mon Sep 17 00:00:00 2001 From: lqh <408285649@qq.com> Date: Wed, 28 Sep 2022 17:32:19 +0800 Subject: [PATCH] Icons shake when changing skin --- desktop.ini | 2 ++ src/components/SvgIcon/index.vue | 2 +- src/styles/sidebar.scss | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 desktop.ini diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 00000000..6f6033ce --- /dev/null +++ b/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +InfoTip=vue-admin-Github diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index b07ded2a..6cb8844e 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -49,7 +49,7 @@ export default { .svg-icon { width: 1em; height: 1em; - vertical-align: -0.15em; + /* vertical-align: -0.15em; */ fill: currentColor; overflow: hidden; } diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 94760cc7..36adf7a4 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -60,6 +60,9 @@ .sub-el-icon { margin-right: 12px; margin-left: -2px; + width: 1rem !important; + height: 1rem !important; + color: #bfcbd9; } .el-menu {