Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(desktop): space the SSH config question like the rest of Settings

leepokai913d46a82f2b
diff --git a/apps/desktop/src/renderer/views/settings/ComputersView.tsx b/apps/desktop/src/renderer/views/settings/ComputersView.tsx
index dc52821b..c3376a76 100644
--- a/apps/desktop/src/renderer/views/settings/ComputersView.tsx
+++ b/apps/desktop/src/renderer/views/settings/ComputersView.tsx
@@ -45,7 +45,7 @@ export function ComputersView() {
<ManagedComputerCard key={store.computer.id} store={store} ssh={sshState.isSSH(store.computer.id)} />
))}
- <div>
+ <div className="settings-ssh">
<SectionHeader title="Over SSH">
{sshState.config?.access === 'denied' ? (
<IconButton title="Find computers in your SSH config" icon="magnifyingglass" onClick={() => void sshState.answerConfig('allowed')} />
diff --git a/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx b/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx
index adf77bca..b2f53741 100644
--- a/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx
+++ b/apps/desktop/src/renderer/views/settings/SSHConfigSuggestions.tsx
@@ -18,21 +18,24 @@ export function SSHConfigSuggestions({ add }: { add: (host: string) => void }) {
if (ssh.config?.access === 'ask') {
return (
+ // The buttons line up under the text, the icon with its first line.
<div className="settings-card settings-appear">
- <div className="settings-row">
- <IconSlot width={22} tone="secondary">
+ <HStack align="flex-start" gap={10}>
+ <IconSlot width={22} tone="secondary" className="ssh-config-icon">
<Icon name="magnifyingglass" size={13} />
</IconSlot>
- <VStack grow className="settings-stack">
- <Text size="callout" weight="medium">{tr('Find computers in your SSH config?')}</Text>
- <Text size="caption" tone="secondary">
- {tr('Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.').replaceAll('{name}', tr(thisMac))}
- </Text>
+ <VStack grow gap={12}>
+ <VStack className="settings-stack">
+ <Text size="callout" weight="medium">{tr('Find computers in your SSH config?')}</Text>
+ <Text size="caption" tone="secondary">
+ {tr('Codync reads ~/.ssh/config on {name} to list its hosts. Nothing is sent anywhere, and nothing connects until you add one.').replaceAll('{name}', tr(thisMac))}
+ </Text>
+ </VStack>
+ <HStack gap={8}>
+ <Button onClick={() => void ssh.answerConfig('allowed')}>Allow</Button>
+ <Button kind="secondary" onClick={() => void ssh.answerConfig('denied')}>Not now</Button>
+ </HStack>
</VStack>
- </div>
- <HStack align="stretch" gap={8}>
- <Button onClick={() => void ssh.answerConfig('allowed')}>Allow</Button>
- <Button kind="secondary" onClick={() => void ssh.answerConfig('denied')}>Not now</Button>
</HStack>
</div>
)
diff --git a/apps/desktop/src/renderer/views/settings/settings.css b/apps/desktop/src/renderer/views/settings/settings.css
index 24b637e1..897d9263 100644
--- a/apps/desktop/src/renderer/views/settings/settings.css
+++ b/apps/desktop/src/renderer/views/settings/settings.css
@@ -163,6 +163,15 @@
.settings-computers-content {
padding: 14px 14px 20px;
}
+/* Over SSH: room between its note and the SSH config card or hosts under it. */
+.settings-ssh > .reveal + .settings-card {
+ margin-top: 12px;
+}
+/* The SSH config question's icon sits on its title's line. */
+.ssh-config-icon {
+ height: 20px;
+ align-items: center;
+}
.settings-ssh-editor {
width: 460px;
}