fix(admin/write): restore scrollability by using overflow-y-auto and min-h-full

This commit is contained in:
xfy 2026-07-03 16:50:53 +08:00
parent acfddb3e17
commit 52b4f91622
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ pub fn AdminLayout() -> Element {
matches!(route, Route::Write {}) || matches!(route, Route::WriteEdit { .. }); matches!(route, Route::Write {}) || matches!(route, Route::WriteEdit { .. });
let main_class = if is_write_route { let main_class = if is_write_route {
"flex-1 flex flex-col relative w-full h-full overflow-hidden rounded-[2rem] bg-[var(--color-paper-theme)] shadow-sm border border-[var(--color-paper-border)]" "flex-1 flex flex-col relative w-full h-full overflow-y-auto px-10 py-12 rounded-[2rem] bg-[var(--color-paper-theme)] shadow-sm border border-[var(--color-paper-border)]"
} else { } else {
"flex-1 w-full max-w-7xl mx-auto px-10 py-12 overflow-y-auto" "flex-1 w-full max-w-7xl mx-auto px-10 py-12 overflow-y-auto"
}; };

View File

@ -401,7 +401,7 @@ fn write_editor(post_id: Option<i32>) -> Element {
// 元信息表单复用样式见模块级 META_LABEL_CLASS / META_INPUT_CLASS。 // 元信息表单复用样式见模块级 META_LABEL_CLASS / META_INPUT_CLASS。
rsx! { rsx! {
div { class: "relative flex flex-col w-full max-w-7xl mx-auto h-full", div { class: "relative flex flex-col w-full max-w-7xl mx-auto min-h-full",
if loading() { if loading() {
div { class: "absolute inset-0 z-10 bg-paper-theme", WriteSkeleton {} } div { class: "absolute inset-0 z-10 bg-paper-theme", WriteSkeleton {} }
} }