The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(composer): adjust composer styles to prevent overflow on narrow screens
Steven Enamakel1ee1526ae87e
diff --git a/app/src/components/chat/composer/composerStyles.ts b/app/src/components/chat/composer/composerStyles.tsindex f3c675fef0..a45fb6e5b4 100644--- a/app/src/components/chat/composer/composerStyles.ts+++ b/app/src/components/chat/composer/composerStyles.ts@@ -65,9 +65,19 @@ export const COMPOSER_DROPZONE =* Only the placeholder colour is remapped. `disabled:` handling is appended:* upstream has no disabled state because its composer is never locked, while* this one is (see `composerInteractionBlocked` / `isSending`).+ *+ * `border-0` is also appended, and it is not cosmetic. `@plugin+ * '@tailwindcss/forms'` resets every bare `textarea` to `border-width: 1px`,+ * `border-color: gray-500`, `border-radius: 0` — so this textarea drew a sharp+ * grey rectangle inside the rounded dropzone at all times, turning blue on+ * focus. Upstream never hit it (no forms plugin) and every other textarea in+ * this app happens to set its own `border`/`rounded`, which outranks the reset;+ * this one deliberately sets neither, so it inherited the reset instead. The+ * focus affordance here is the dropzone's `focus-within:bg-surface-muted/75`,+ * which is why the input asks for `outline-hidden` and `ring-0` as well.*/export const COMPOSER_INPUT =- 'max-h-32 min-h-14 w-full resize-none bg-transparent px-3.5 pt-3 pb-2 text-sm leading-5 ' ++ 'max-h-32 min-h-14 w-full resize-none border-0 bg-transparent px-3.5 pt-3 pb-2 text-sm leading-5 ' +'text-content outline-hidden placeholder:text-content-muted focus-visible:ring-0 ' +'disabled:cursor-not-allowed disabled:opacity-50';diff --git a/app/src/index.css b/app/src/index.cssindex 83d49efbba..abb778f968 100644--- a/app/src/index.css+++ b/app/src/index.css@@ -679,13 +679,18 @@Keeping the ring and re-pointing it at the theme is the fix; deleting itwould take a real focus affordance with it. `!important` is needed becausethe plugin's selectors are attribute-qualified (`[type='text']:focus`) and- outrank any element selector written here. */+ outrank any element selector written here.++ Only the two ring variables are touched. The plugin's blue `border-color`+ is deliberately left alone: a control that cares already sets its own focus+ border as a utility, which outranks the plugin on layer order — and an+ `!important` here would override those, painting an invalid field's coral+ border primary-blue. */input:focus,textarea:focus,select:focus {--tw-ring-color: var(--color-ring) !important;--tw-ring-offset-color: var(--color-background) !important;- border-color: var(--color-ring) !important;}/* Smooth scrolling */