From d8be4676d027fd360e255e26809fb2312e950684 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Sun, 21 Jul 2024 02:56:42 +0200 Subject: [PATCH] change paddings --- dist/index.css | 5 +++-- dist/index.js | 2 +- src/View/homePage.css | 5 +++-- src/View/homePage.tsx | 3 --- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/dist/index.css b/dist/index.css index c4b07360..64fb34d4 100644 --- a/dist/index.css +++ b/dist/index.css @@ -329,8 +329,9 @@ body[showing-chat] #chat-page-wrapper { overflow: scroll; scroll-snap-align: center; } -#home-page #overview-section { - padding-bottom: calc(var(--content-padding) + var(--safe-area-bottom)); +#home-page #overview-section, +#home-page #chat-section { + padding-bottom: calc(var(--content-padding) + var(--header-height) + var(--safe-area-bottom)); } #home-page #chat-grid { margin-top: var(--content-padding); diff --git a/dist/index.js b/dist/index.js index c009f7fa..28732fb0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1719,7 +1719,7 @@ function scrollToChat() { chatSection.scrollIntoView(); } - return /* @__PURE__ */ createElement("article", { id: "home-page" }, /* @__PURE__ */ createElement("header", null, /* @__PURE__ */ createElement("span", null, translations.homePage.appName)), /* @__PURE__ */ createElement("div", null, overviewSection, chatSection)); + return /* @__PURE__ */ createElement("article", { id: "home-page" }, /* @__PURE__ */ createElement("div", null, overviewSection, chatSection)); } // src/Model/settingsModel.ts diff --git a/src/View/homePage.css b/src/View/homePage.css index cb8ed565..a8037da2 100644 --- a/src/View/homePage.css +++ b/src/View/homePage.css @@ -29,8 +29,9 @@ scroll-snap-align: center; } -#home-page #overview-section { - padding-bottom: calc(var(--content-padding) + var(--safe-area-bottom)); +#home-page #overview-section, +#home-page #chat-section { + padding-bottom: calc(var(--content-padding) + var(--header-height) + var(--safe-area-bottom)); } #home-page #chat-grid { diff --git a/src/View/homePage.tsx b/src/View/homePage.tsx index 61949d66..6ef9b06d 100644 --- a/src/View/homePage.tsx +++ b/src/View/homePage.tsx @@ -181,9 +181,6 @@ export function HomePage( // final return (
-
- {translations.homePage.appName} -
{overviewSection} {chatSection}