From 27210da13a3b196ff3f5d71e73797ebc63d38707 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 20 Jul 2026 20:18:23 +0800 Subject: [PATCH] style(alert): tighten with-description padding, icon size, and title line-height --- src/assets/styles/alert.less | 3 +++ src/assets/styles/common.less | 1 + src/config/theme/dark.ts | 4 ++++ src/config/theme/light.ts | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 src/assets/styles/alert.less diff --git a/src/assets/styles/alert.less b/src/assets/styles/alert.less new file mode 100644 index 00000000..782a4c1c --- /dev/null +++ b/src/assets/styles/alert.less @@ -0,0 +1,3 @@ +.ant-alert-with-description .ant-alert-title { + line-height: 1; +} diff --git a/src/assets/styles/common.less b/src/assets/styles/common.less index 7f20ae4e..2e300b6e 100644 --- a/src/assets/styles/common.less +++ b/src/assets/styles/common.less @@ -1,4 +1,5 @@ @import './table.less'; +@import './alert.less'; .m-b-20 { margin-bottom: 20px; diff --git a/src/config/theme/dark.ts b/src/config/theme/dark.ts index c104a494..6e329316 100644 --- a/src/config/theme/dark.ts +++ b/src/config/theme/dark.ts @@ -43,6 +43,10 @@ export default { DatePicker: { fontSizeLG: 14 }, + Alert: { + withDescriptionPadding: '12px 16px', + withDescriptionIconSize: 18 + }, Menu: { iconSize: 16, iconMarginInlineEnd: 12, diff --git a/src/config/theme/light.ts b/src/config/theme/light.ts index 2340afc6..c1c23519 100644 --- a/src/config/theme/light.ts +++ b/src/config/theme/light.ts @@ -47,6 +47,10 @@ export default { DatePicker: { fontSizeLG: 14 }, + Alert: { + withDescriptionPadding: '12px 16px', + withDescriptionIconSize: 18 + }, Menu: { iconSize: 16, iconMarginInlineEnd: 12,