|
@@ -13,7 +13,7 @@ fn app(cx: Scope) -> Element {
|
|
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css", rel:"stylesheet" }
|
|
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css", rel:"stylesheet" }
|
|
header {
|
|
header {
|
|
class: "text-gray-400 bg-gray-900 body-font",
|
|
class: "text-gray-400 bg-gray-900 body-font",
|
|
- onmousedown: move |_| window.drag_window(),
|
|
|
|
|
|
+ onmousedown: move |_| window.drag(),
|
|
div {
|
|
div {
|
|
class: "container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center",
|
|
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",
|
|
a { class: "flex title-font font-medium items-center text-white mb-4 md:mb-0",
|
|
@@ -29,7 +29,7 @@ fn app(cx: Scope) -> Element {
|
|
button {
|
|
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",
|
|
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(),
|
|
onmousedown: |evt| evt.cancel_bubble(),
|
|
- onclick: move |_| window.close_window(),
|
|
|
|
|
|
+ onclick: move |_| window.close(),
|
|
"Close"
|
|
"Close"
|
|
}
|
|
}
|
|
}
|
|
}
|