chore: fmt

This commit is contained in:
lencx
2023-01-21 22:51:16 +08:00
parent 5b6a69444e
commit 1e5ec6028d
3 changed files with 36 additions and 36 deletions

View File

@@ -348,18 +348,18 @@ pub fn menu_handler(event: WindowMenuEvent<tauri::Wry>) {
"scroll_top" => win
.eval(
r#"window.scroll({
top: 0,
left: 0,
behavior: "smooth"
})"#,
top: 0,
left: 0,
behavior: "smooth"
})"#,
)
.unwrap(),
"scroll_bottom" => win
.eval(
r#"window.scroll({
top: document.body.scrollHeight,
left: 0,
behavior: "smooth"})"#,
top: document.body.scrollHeight,
left: 0,
behavior: "smooth"})"#,
)
.unwrap(),
// Help