ui: move sidebar toggle button to left side next to back button

This commit is contained in:
Developer
2026-05-24 07:56:13 +08:00
parent e4dfc80979
commit a4af235eab

View File

@@ -324,6 +324,9 @@ pub fn reading_view(
if ui.button("← 返回").on_hover_text("返回书架").clicked() {
action.go_back = true;
}
if ui.button("").on_hover_text("打开/关闭目录").clicked() {
*sidebar_open = !*sidebar_open;
}
ui.separator();
ui.label(format!("{}", &book.title));
ui.label(format!("[{}]", book.layout.label()));
@@ -390,9 +393,6 @@ pub fn reading_view(
}
});
}
if ui.button("").on_hover_text("打开/关闭目录").clicked() {
*sidebar_open = !*sidebar_open;
}
});
});
});