fix(theme/notify): [notify] fix notify title white-space (#1413)

* fix(theme/notify): [notify] fix notify title white-space

* fix(theme/notify): [notify] fix notify title white-space 2

* fix(theme/notify): [notify] fix notify title white-space 3
This commit is contained in:
yoyo 2024-02-27 10:06:16 +08:00 committed by GitHub
parent 369f28128b
commit 9146bdb554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 0 deletions

View File

@ -82,6 +82,7 @@
& &__message-zone {
@apply w-full;
@apply ~'ml-2.5';
@apply min-w-0;
}
& &__close-zone {

View File

@ -0,0 +1,3 @@
export const tinyPagerAuroraTheme = {
'ti-notify-title-white-space': 'nowrap'
}

View File

@ -77,6 +77,9 @@
font-size: var(--ti-notify-title-font-size);
color: var(--ti-notify-title-text-color);
line-height: 1.5;
white-space: var(--ti-notify-title-white-space);
overflow-x: hidden;
text-overflow: ellipsis;
}
& &__icon {

View File

@ -47,6 +47,8 @@
--ti-notify-title-margin-horizontal: var(--ti-common-space-0, 0px);
// 弹框标题底部外边距
--ti-notify-title-margin-bottom: var(--ti-common-space-2x, 8px);
// 弹框标题换行(hide)
--ti-notify-title-white-space: normal;
// 弹框内容字号(没有效果,优先级被覆盖)
--ti-notify-content-font-size: var(--ti-common-font-size-1, 14px);
// 弹框文字顶部外边距