💄 Make all the ChatsWindow main div usable
This commit is contained in:
19
src/main.rs
19
src/main.rs
@@ -19,7 +19,24 @@ fn App(cx: Scope<AppSettings>) -> Element {
|
|||||||
|
|
||||||
let chats_window = dioxus_desktop::use_window(cx);
|
let chats_window = dioxus_desktop::use_window(cx);
|
||||||
let chats_dom = VirtualDom::new(ChatsWindow);
|
let chats_dom = VirtualDom::new(ChatsWindow);
|
||||||
chats_window.new_window(chats_dom, Default::default());
|
let window_cfg = Config::default().with_custom_head(
|
||||||
|
r#"
|
||||||
|
<style type="text/css">
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
#main, #bodywrap {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
"#
|
||||||
|
.to_owned(),
|
||||||
|
);
|
||||||
|
chats_window.new_window(chats_dom, window_cfg);
|
||||||
|
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
MainWindow {}
|
MainWindow {}
|
||||||
|
Reference in New Issue
Block a user