add animations

This commit is contained in:
marlon-erler
2024-07-20 23:20:57 +02:00
parent 050270df62
commit 1e2868d416
8 changed files with 95 additions and 33 deletions
+5 -1
View File
@@ -3,7 +3,11 @@
display: none;
}
#chat-page-wrapper[open] {
body[showing-chat] #home-page {
display: none;
}
body[showing-chat] #chat-page-wrapper {
display: flex;
position: absolute;
-5
View File
@@ -16,15 +16,10 @@ export function ChatPageWrapper(chatListViewModel: ChatListViewModel) {
}
}
);
const isShowingChat = React.createProxyState(
[chatListViewModel.selectedChat],
() => chatListViewModel.selectedChat.value != undefined
);
return (
<div
id="chat-page-wrapper"
toggle:open={isShowingChat}
children:set={chatPageContent}
></div>
);