+ {/* Compact header — the subtitle is desktop-only so the chat keeps the
+ vertical space on phones (modern chat surfaces don't title the page). */}
Loki
-
+
Say what you want — Loki figures out which project and whether to chat or dispatch.
diff --git a/src/app/globals.css b/src/app/globals.css
index 3db944ccd..6616ada40 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -2629,10 +2629,21 @@
.ui-loki-convo-delete-armed {
@apply opacity-100 text-status-negative bg-status-negative-subtle;
}
+ /* Touch devices have no hover, so the delete would be permanently invisible.
+ Show it (dimmed) there; desktop keeps the reveal-on-hover behaviour. */
+ @media (hover: none) {
+ .ui-loki-convo-delete { @apply opacity-60; }
+ }
/* Message bubbles (center pane). */
.ui-loki-bubble {
- @apply max-w-[85%] rounded-2xl px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap break-words;
+ @apply rounded-2xl px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap break-words;
+ /* Roomy on phones, tighter on desktop — bubbles read as chat, not full-width
+ blocks. Direct CSS (not an arbitrary Tailwind value) keeps it responsive. */
+ max-width: 90%;
+ }
+ @media (min-width: 640px) {
+ .ui-loki-bubble { max-width: 75%; }
}
.ui-loki-bubble-user {
@apply self-end bg-accent-muted text-text-primary;
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index ce13836bd..23a6a4989 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -48,6 +48,10 @@ export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
viewportFit: "cover",
+ // The on-screen keyboard shrinks the visual viewport instead of overlaying
+ // it, so a bottom-anchored composer (Loki, Terminal) stays visible above the
+ // keyboard rather than being covered by it.
+ interactiveWidget: "resizes-content",
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#f7f7f7" },
{ media: "(prefers-color-scheme: dark)", color: "#0a0a0a" },
diff --git a/src/components/loki/LokiWorkspace.tsx b/src/components/loki/LokiWorkspace.tsx
index b9fd4df08..5852dac53 100644
--- a/src/components/loki/LokiWorkspace.tsx
+++ b/src/components/loki/LokiWorkspace.tsx
@@ -1,7 +1,9 @@
"use client";
import { useEffect, useMemo, useState } from "react";
+import { MessagesSquare, Plus, SlidersHorizontal } from "lucide-react";
import { getJson, postJson, deleteJson, throwApiError } from "@/lib/api/fetch";
+import { Drawer } from "@/components/ui/modal";
import { ConversationList } from "./ConversationList";
import { Transcript } from "./Transcript";
import { Composer } from "./Composer";
@@ -25,6 +27,10 @@ export function LokiWorkspace() {
const [messages, setMessages] = useState
([]);
const [sending, setSending] = useState(false);
const [error, setError] = useState(null);
+ // Mobile-only slide-overs for the history + project panes (desktop shows them
+ // as permanent columns). Keeps the chat full-width on phones.
+ const [historyOpen, setHistoryOpen] = useState(false);
+ const [filterOpen, setFilterOpen] = useState(false);
// Initial load — conversations + projects.
useEffect(() => {
@@ -143,9 +149,9 @@ export function LokiWorkspace() {
};
return (
-
- {/* LEFT — conversation list */}
-