💄 Make all the ChatsWindow main div usable

This commit is contained in:
2023-08-16 22:38:31 +02:00
parent 60f2466411
commit 94d0ea1cc8

View File

@@ -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 {}