diff --git a/src/components/admin_layout.rs b/src/components/admin_layout.rs index 83f67a0..d39c3c4 100644 --- a/src/components/admin_layout.rs +++ b/src/components/admin_layout.rs @@ -53,7 +53,7 @@ pub fn AdminLayout() -> Element { matches!(route, Route::Write {}) || matches!(route, Route::WriteEdit { .. }); 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 { "flex-1 w-full max-w-7xl mx-auto px-10 py-12 overflow-y-auto" }; diff --git a/src/pages/admin/write.rs b/src/pages/admin/write.rs index 5092ea9..12eef29 100644 --- a/src/pages/admin/write.rs +++ b/src/pages/admin/write.rs @@ -401,7 +401,7 @@ fn write_editor(post_id: Option) -> Element { // 元信息表单复用样式见模块级 META_LABEL_CLASS / META_INPUT_CLASS。 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() { div { class: "absolute inset-0 z-10 bg-paper-theme", WriteSkeleton {} } }