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
+13 -4
View File
@@ -206,16 +206,17 @@ main {
display: flex;
}
#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 {
overflow: auto;
@@ -229,10 +230,14 @@ main {
#chat-page #ribbon {
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);
@@ -260,9 +265,13 @@ main {
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);
}
/* src/View/homePage.css */
#home-page > div {
+2 -2
View File
@@ -953,7 +953,7 @@
return mainContent.value = MessagePage(chatViewModel);
}
});
return /* @__PURE__ */ createElement("article", { id: "chat-page", "set:color": chatViewModel.color }, /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("div", { id: "ribbon" }, /* @__PURE__ */ createElement("span", null, /* @__PURE__ */ createElement(
return /* @__PURE__ */ createElement("article", { id: "chat-page", "set:color": chatViewModel.color }, /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("div", { id: "ribbon" }, /* @__PURE__ */ createElement(
"button",
{
class: "ghost",
@@ -961,7 +961,7 @@
"on:click": chatViewModel.close
},
/* @__PURE__ */ createElement("span", { class: "icon" }, "close")
)), /* @__PURE__ */ createElement("span", null, ChatViewToggleButton(
), /* @__PURE__ */ createElement("span", null, ChatViewToggleButton(
translations.chatPage.pages.calendar,
"calendar_month",
"calendar" /* Calendar */,
+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);
}
-2
View File
@@ -25,7 +25,6 @@ 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}
@@ -33,7 +32,6 @@ export function ChatPage(chatViewModel: ChatViewModel) {
>
<span class="icon">close</span>
</button>
</span>
<span>
{ChatViewToggleButton(