fix: borderless example

This commit is contained in:
mrxiaozhuox committed 2022-02-11 09:05:32 +08:00
1 parent 332ec30954
commit 62f8e71f7f
3 files changed
+35 -5

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ fn app(cx: Scope) -> Element {
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css", rel:"stylesheet" }
header {
class: "text-gray-400 bg-gray-900 body-font",
onmousedown: move |_| window.drag(),
onmousedown: move |_| window.drag_window(),
div {
class: "container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center",
a { class: "flex title-font font-medium items-center text-white mb-4 md:mb-0",
@@ -23,13 +23,13 @@ fn app(cx: Scope) -> Element {
button {
class: "inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0",
onmousedown: |evt| evt.cancel_bubble(),
onclick: move |_| window.minimize(true),
onclick: move |_| window.set_minimized(true),
"Minimize"
}
button {
class: "inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0",
onmousedown: |evt| evt.cancel_bubble(),
onclick: move |_| window.close(),
onclick: move |_| window.close_window(),
"Close"
}
}