diff --git a/core/http/static/general.css b/core/http/static/general.css index 3bfd63d31..467821970 100644 --- a/core/http/static/general.css +++ b/core/http/static/general.css @@ -17,6 +17,7 @@ body { .app-layout { display: flex; min-height: 100vh; + min-height: 100dvh; background-color: var(--color-bg-primary); } @@ -24,6 +25,7 @@ body { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; + min-height: 100dvh; display: flex; flex-direction: column; background-color: var(--color-bg-primary); @@ -37,6 +39,19 @@ body { background-color: var(--color-bg-primary); } +/* Chat page: fix viewport height so messages scroll and input stays fixed at bottom */ +.app-layout.chat-layout { + height: 100vh; + height: 100dvh; + overflow: hidden; +} +.main-content.chat-layout { + min-height: 0; +} +.main-content-inner.chat-layout { + min-height: 0; +} + /* Tablet and mobile */ @media (max-width: 1023px) { .main-content { @@ -44,6 +59,13 @@ body { } } +/* Safe area for notched devices (e.g. iOS) - use on fixed bottom bars / modals */ +@supports (padding: env(safe-area-inset-bottom)) { + .pb-safe { + padding-bottom: max(1rem, env(safe-area-inset-bottom)); + } +} + .chat-container { height: 90vh; display: flex; flex-direction: column; } .chat-messages { overflow-y: auto; flex-grow: 1; } .htmx-indicator{ diff --git a/core/http/views/chat.html b/core/http/views/chat.html index 5ccdb294d..822dacb4c 100644 --- a/core/http/views/chat.html +++ b/core/http/views/chat.html @@ -587,18 +587,20 @@ SOFTWARE. {{ $allGalleryConfigs:=.GalleryConfig }} {{ $model:=.Model}} - -
+ +
{{template "views/partials/navbar" .}} -
-
+
+
- + + +
@@ -1103,59 +1105,57 @@ SOFTWARE.
- +
+ :class="settingsPanelOpen ? 'md:mr-56' : 'mr-0'"> -
-
-
- - -