style(h5): HomeToolIcon 全局放大约 39%
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

统一按 prop×1.392 显示,并同步首页九宫格容器,避免裁切。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-06 16:10:39 +08:00
co-authored by Cursor
parent 00fc7f82b9
commit 4a583c9480
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -239,7 +239,8 @@ const props = withDefaults(
const uid = useId().replace(/:/g, '')
const f = computed(() => `url(#${uid}s)`)
const sizePx = computed(() => `${props.size}px`)
/** Display size = prop × 1.392 (cumulative icon scale). */
const sizePx = computed(() => `${Math.round(props.size * 1.392)}px`)
function g(key: string) {
return `url(#${uid}${key})`
}
@@ -79,7 +79,7 @@ defineEmits<{ track: [label: string] }>()
gap: 2px;
}
.tool-item {
width: 74px;
width: 88px;
display: flex;
flex-direction: column;
align-items: center;
@@ -93,8 +93,8 @@ defineEmits<{ track: [label: string] }>()
transform: scale(0.9);
}
.tool-item .icon {
width: 54px;
height: 54px;
width: 75px;
height: 75px;
display: flex;
align-items: center;
justify-content: center;