fix(UI): better message offset top

This commit is contained in:
Timi
2026-11-18 17:18:53 +08:00
parent aa48ebf4ad
commit c70b35bb89
+33
View File
@@ -64,6 +64,39 @@ html.theme-dark body {
box-sizing: border-box;
}
// 消息提示避开顶部安全区和导航栏。
.t-message {
margin-top: calc(var(--tui-safe-top, 0px) + 48px);
&.message-enter-active {
animation: message-slide-in .5s;
}
&.message-leave-active {
animation: message-slide-out .45s;
}
}
@keyframes message-slide-in {
from {
transform: translateY(calc(-100% - var(--tui-safe-top, 0px) - 58px));
}
to {
transform: translateY(0);
}
}
@keyframes message-slide-out {
from {
transform: translateY(0);
}
to {
transform: translateY(calc(-100% - var(--tui-safe-top, 0px) - 58px));
}
}
/**
* 页面骨架(tui-page-layout / tui-page-content / tui-navbar / tui-tabbar)由
* timi-tdesign-mobile 的 page-layout.less 提供,这里只保留业务侧约定。