From 68d555a98672cb335a523673549789fdf7757de3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 21:43:47 +0000 Subject: [PATCH] fix(github): fit the write mode cards and the repository hint on one row The three write mode cards now sit on one row when the form is wide enough and stack on a phone. The repository hint is shorter so the two line clamp no longer hides its end behind a More link at 390 px. Assisted-by: Claude:claude-sonnet-5-5 playwright --- addons/github/ui/src/github.css | 3 +++ addons/github/ui/src/i18n/github.en.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/github/ui/src/github.css b/addons/github/ui/src/github.css index 7c621bead8..182e6cdc35 100644 --- a/addons/github/ui/src/github.css +++ b/addons/github/ui/src/github.css @@ -39,3 +39,6 @@ background: var(--color-bg-secondary); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; } @media (max-width: 480px) { .gh-prop__row { grid-template-columns: minmax(0, 1fr); gap: 0; } } + +/* Three cards on one row when they fit, one column on a phone. */ +.gh-mode-block .cn-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } diff --git a/addons/github/ui/src/i18n/github.en.json b/addons/github/ui/src/i18n/github.en.json index c2b2414b82..7d6593de33 100644 --- a/addons/github/ui/src/i18n/github.en.json +++ b/addons/github/ui/src/i18n/github.en.json @@ -12,7 +12,7 @@ "tokenShape": "Use a fine-grained token: it starts with github_pat_.", "tokenSpace": "The token has no spaces. Copy it again without the spaces around it.", "repos": "Repositories the agent may use", - "reposHelp": "One per line, as owner/name. {{count}} listed. The agent is refused any other repository, even if the token could reach it.", + "reposHelp": "One per line, as owner/name. {{count}} listed. Any other repository is refused.", "reposShape": "\"{{entry}}\" is not written owner/name, for example mudler/LocalAI.", "reposMany": "At most 50 repositories.", "agent": "Agent",