fix overflow

This commit is contained in:
marlon-erler
2024-07-20 19:26:13 +02:00
parent 1cc7f86cc6
commit a8651db49c
4 changed files with 38 additions and 21 deletions
+16 -6
View File
@@ -37,18 +37,19 @@
}
#chat-page #main {
width: calc(100% - var(--ribbon-size));
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
flex: 1;
}
#chat-page #main > div,
#chat-page #main .content {
width: 100%;
height: 100%;
flex: 1;
display: flex;
flex-direction: column;
}
#chat-page #main .content {
@@ -68,13 +69,17 @@
width: var(--ribbon-size);
border-right: 1px solid var(--border);
overflow: auto;
justify-content: space-between;
padding-bottom: var(--safe-area-bottom);
}
#chat-page #ribbon > span {
height: 100%;
flex: 1;
overflow: auto;
}
#chat-page #main .toolbar {
height: var(--ribbon-size);
border-bottom: 1px solid var(--border);
@@ -110,7 +115,12 @@
width: 100%;
max-width: var(--control-height);
height: var(--control-height);
min-height: var(--control-height);
align-items: center;
justify-content: center;
}
#chat-page #ribbon > button {
margin-top: var(--gap-between-tiles);
}
+7 -9
View File
@@ -25,15 +25,13 @@ export function ChatPage(chatViewModel: ChatViewModel) {
<article id="chat-page" set:color={chatViewModel.color}>
<div>
<div id="ribbon">
<span>
<button
class="ghost"
aria-label={translations.chatPage.closeChatAudioLabe}
on:click={chatViewModel.close}
>
<span class="icon">close</span>
</button>
</span>
<button
class="ghost"
aria-label={translations.chatPage.closeChatAudioLabe}
on:click={chatViewModel.close}
>
<span class="icon">close</span>
</button>
<span>
{ChatViewToggleButton(