fix(admin/write): restore scrollability by using overflow-y-auto and min-h-full
This commit is contained in:
parent
acfddb3e17
commit
52b4f91622
@ -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"
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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 {} }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user