Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: mobile display problem

Gus17722dba9e2f
diff --git a/src/web/public/manifest.json b/src/web/public/manifest.json
index 550ffaef4..46b4e0d06 100644
--- a/src/web/public/manifest.json
+++ b/src/web/public/manifest.json
@@ -5,7 +5,7 @@
"start_url": "/",
"display": "standalone",
"background_color": "#f5f0e8",
- "theme_color": "#3d3428",
+ "theme_color": "#f5f0e8",
"icons": [
{
"src": "/alook.svg",
diff --git a/src/web/src/app/layout.tsx b/src/web/src/app/layout.tsx
index 9e55f893b..0a6cbd5f3 100644
--- a/src/web/src/app/layout.tsx
+++ b/src/web/src/app/layout.tsx
@@ -1,4 +1,4 @@
-import type { Metadata } from "next";
+import type { Metadata, Viewport } from "next";
import {
DM_Sans,
DM_Mono,
@@ -52,6 +52,13 @@ const literata = Literata({
const SITE_URL = "https://alook.ai";
+export const viewport: Viewport = {
+ themeColor: [
+ { media: "(prefers-color-scheme: light)", color: "#f5f0e8" },
+ { media: "(prefers-color-scheme: dark)", color: "#262320" },
+ ],
+};
+
export const metadata: Metadata = {
metadataBase: new URL(SITE_URL),
title: {
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsx
index cbf0af1ef..04cdea5c0 100644
--- a/src/web/src/components/agent-chat/agent-chat-view.tsx
+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx
@@ -307,6 +307,9 @@ export function AgentChatView() {
}, []);
useEffect(() => {
+ if (pollRef.current) clearInterval(pollRef.current);
+ pollRef.current = null;
+ pollTaskIdRef.current = null;
setLoading(true);
initialScrollDone.current = false;
setActiveTask(null);
diff --git a/src/web/src/components/agent-chat/artifact-sheet.tsx b/src/web/src/components/agent-chat/artifact-sheet.tsx
index d0afacbe4..147fb9ab6 100644
--- a/src/web/src/components/agent-chat/artifact-sheet.tsx
+++ b/src/web/src/components/agent-chat/artifact-sheet.tsx
@@ -9,7 +9,7 @@ import {
SheetBody,
} from "@/components/ui/sheet";
import type { Artifact } from "@alook/shared";
-import { FileText, Download } from "lucide-react";
+import { FileText, Download, X } from "lucide-react";
import { Button } from "@/components/ui/button";
import { ArtifactContentRenderer, getArtifactUrl } from "@/components/artifact-content-renderer";
@@ -94,6 +94,14 @@ export function ArtifactSheet({ open, onOpenChange, artifacts, workspaceId, init
>
<Download className="size-4" />
</Button>
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ className="shrink-0 sm:hidden"
+ onClick={() => handleOpenChange(false)}
+ >
+ <X className="size-4" />
+ </Button>
</div>
</SheetHeader>
<SheetBody className="thin-scrollbar">
@@ -103,7 +111,17 @@ export function ArtifactSheet({ open, onOpenChange, artifacts, workspaceId, init
) : (
<>
<SheetHeader>
- <SheetTitle>Artifacts</SheetTitle>
+ <div className="flex items-center gap-2">
+ <SheetTitle className="flex-1">Artifacts</SheetTitle>
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ className="shrink-0 sm:hidden"
+ onClick={() => handleOpenChange(false)}
+ >
+ <X className="size-4" />
+ </Button>
+ </div>
</SheetHeader>
<SheetBody className="thin-scrollbar">
{artifacts.length === 0 ? (