Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

New room: a refusal shows beside Create, not at the bottom of the form

Simon Flack2e27eed101ec
diff --git a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/CreateRoomModal.tsx b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/CreateRoomModal.tsx
index aa2192b42..bf9c18702 100644
--- a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/CreateRoomModal.tsx
+++ b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/CreateRoomModal.tsx
@@ -402,9 +402,15 @@ export const CreateRoomModal = observer(function CreateRoomModal({
{failureText(bridgesQuery.error, 'Could not load messaging apps.')}
</p>
)}
- {error && <p className="text-xs text-destructive">{error}</p>}
</div>
</DialogContentArea>
+ {/* Outside the scrolling form, beside the button that caused it, so a
+ refusal is never scrolled out of sight under a long form. */}
+ {error && (
+ <p role="alert" className="px-6 pb-2 text-xs text-destructive">
+ {error}
+ </p>
+ )}
<DialogFooter className="sm:justify-between">
<MessagingAppSelector
bridges={bridges}