Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Phones: Upscale and Details menus use the full width

Gabriele Lozuponea61672b8f7c5
diff --git a/src/components/Stage.tsx b/src/components/Stage.tsx
index 17cb755..33685fe 100644
--- a/src/components/Stage.tsx
+++ b/src/components/Stage.tsx
@@ -252,7 +252,7 @@ function InfoPanel({ g }: { g: GenerationRecord }) {
["Created", new Date(g.created_at).toLocaleString()],
];
return (
- <div style={{ width: 340, padding: 8, display: "flex", flexDirection: "column", gap: 6 }}>
+ <div className="info-panel" style={{ padding: 8, display: "flex", flexDirection: "column", gap: 6 }}>
<div style={{ fontSize: 13, userSelect: "text", maxHeight: 160, overflow: "auto" }}>{g.prompt}</div>
{g.original_prompt && (
<div className="muted" style={{ userSelect: "text", maxHeight: 80, overflow: "auto" }}>
@@ -290,7 +290,7 @@ function UpscaleMenu(props: { source: string; size: Size; original?: Size | null
props.close();
};
return (
- <div style={{ width: 300, padding: 8, display: "flex", flexDirection: "column", gap: 10 }}>
+ <div className="upscale-menu" style={{ padding: 8, display: "flex", flexDirection: "column", gap: 10 }}>
<span className="muted">{via}: a few seconds, adds no new content.</span>
{targets.map((t) => (
<button key={t.key} className="btn" onClick={() => go(t)}>
diff --git a/src/styles.css b/src/styles.css
index bfc71b3..b53fab3 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -682,6 +682,9 @@ pre.diag { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font
/* ---------- aspect ratio and size menus ---------- */
.popover.wide { min-width: 0; }
+/* the width is a class, not inline, so phones can widen it (sheet) */
+.info-panel { width: 340px; }
+.upscale-menu { width: 300px; }
/* Prompt+ menu: one line per choice */
.popover.prompt-plus { width: 260px; }
.popover.prompt-plus .opt > span:not(.check) { white-space: nowrap; }