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: menus use the full screen width (advanced, aspect, add-image, Prompt+), darker backdrop

Gabriele Lozupone0d7a927d9045
diff --git a/src/styles.css b/src/styles.css
index ac3be2c..bfc71b3 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1037,8 +1037,11 @@ kbd { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; display
.modal-save { display: flex; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: auto -16px calc(-16px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
.modal-save .btn { flex: 1; justify-content: center; height: 42px; }
/* menus: a sheet along the bottom of the screen (ui.tsx Popover) */
- .sheet-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(13, 13, 12, 0.3); animation: fade 0.2s ease-out both; }
- .popover.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; min-width: 0; max-height: min(72dvh, 600px); overflow-y: auto; padding: 8px; border-radius: 20px; }
+ .sheet-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, 0.45); animation: fade 0.2s ease-out both; }
+ /* the menus' own fixed widths (.panel, .aspect-menu, .add-menu, Prompt+) give way to the screen's */
+ .popover.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; width: auto; min-width: 0; max-width: none; max-height: min(72dvh, 600px); overflow-y: auto; overflow-x: hidden; padding: 8px; border-radius: 20px; }
+ .popover.sheet.panel { padding: 14px; }
+ .popover.sheet .aspect-menu, .popover.sheet .add-menu, .popover.sheet > * { width: auto; max-width: 100%; }
.popover.sheet .opt { padding: 11px 12px; font-size: 15px; }
.modal-body { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.path-row { flex-wrap: wrap; }