fix layout

This commit is contained in:
marlon-erler
2024-07-09 17:35:32 +02:00
parent 1202789a43
commit cfe186f1d0
3 changed files with 10 additions and 6 deletions
+1
View File
@@ -147,6 +147,7 @@ export function closeChatView() {
export function selectChat(chat: Chat) {
selectedChat.value = chat;
document.getElementById("message-tab")?.scrollIntoView();
}
chatIds.value.forEach((id) => chats.add(new Chat(id)));
+5 -3
View File
@@ -27,7 +27,7 @@ export function MessageTab() {
}
return (
<article id="message-tab">
<div>
<header class="padding-0">
<span class="flex-row align-center">
<button aria-label={translation.back} on:click={closeChatView}>
@@ -45,13 +45,15 @@ export function MessageTab() {
</button>
</span>
</header>
{ThreadView(chat)}
<footer>{MessageComposer(chat)}</footer>
{ChatOptionModal(chat, isShowingOptions)}
</article>
</div>
);
});
return <div children:set={messageTabContent}></div>;
return <article id="message-tab" children:set={messageTabContent}></article>;
}