Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): match button heights to the text fields beside them (#346)

Leo0e8ddb1c4210
diff --git a/.changeset/matched-connect-buttons.md b/.changeset/matched-connect-buttons.md
new file mode 100644
index 000000000..2100f28e9
--- /dev/null
+++ b/.changeset/matched-connect-buttons.md
@@ -0,0 +1,5 @@
+---
+"@akeru/web": patch
+---
+
+Buttons next to text fields, such as Connect on the provider sign-in code field, now match the field's height.
diff --git a/apps/web/src/components/plugins/ComposioSection.tsx b/apps/web/src/components/plugins/ComposioSection.tsx
index de8137c35..14b1d3a7d 100644
--- a/apps/web/src/components/plugins/ComposioSection.tsx
+++ b/apps/web/src/components/plugins/ComposioSection.tsx
@@ -345,13 +345,12 @@ export function ComposioSection({
value={apiKey}
onChange={(event) => setApiKey(event.currentTarget.value)}
/>
- <Button disabled={!apiKey.trim() || pendingId !== null} size="sm" type="submit">
+ <Button disabled={!apiKey.trim() || pendingId !== null} type="submit">
{configured ? t("Replace key") : t("Save key")}
</Button>
{configured ? (
<Button
disabled={pendingId !== null}
- size="sm"
type="button"
variant="ghost"
onClick={() => void removeKey()}
diff --git a/apps/web/src/components/roster/GroupEditor.tsx b/apps/web/src/components/roster/GroupEditor.tsx
index 87e77a6ee..fcc2df3a0 100644
--- a/apps/web/src/components/roster/GroupEditor.tsx
+++ b/apps/web/src/components/roster/GroupEditor.tsx
@@ -113,7 +113,6 @@ export function GroupEditor({
onChange={(event) => setName(event.currentTarget.value)}
/>
<Button
- size="sm"
disabled={busy || !name.trim() || name.trim() === group.name}
onClick={() =>
void run(
diff --git a/apps/web/src/components/settings/BrowserSettings.tsx b/apps/web/src/components/settings/BrowserSettings.tsx
index 29b32435f..039fc9a1d 100644
--- a/apps/web/src/components/settings/BrowserSettings.tsx
+++ b/apps/web/src/components/settings/BrowserSettings.tsx
@@ -69,12 +69,11 @@ export function BrowserSettingsSection() {
value={apiKey}
onChange={(event) => setApiKey(event.target.value)}
/>
- <Button disabled={!canSave} size="sm" type="submit">
+ <Button disabled={!canSave} type="submit">
{t("Save")}
</Button>
{configured ? (
<Button
- size="sm"
type="button"
variant="outline"
onClick={() =>
diff --git a/apps/web/src/components/settings/ProviderAccountControls.tsx b/apps/web/src/components/settings/ProviderAccountControls.tsx
index f1a2ec2bc..efb99f023 100644
--- a/apps/web/src/components/settings/ProviderAccountControls.tsx
+++ b/apps/web/src/components/settings/ProviderAccountControls.tsx
@@ -317,11 +317,7 @@ export function ActiveLoginPanel({
aria-label={isApiKey ? t("API key") : t("Authorization code")}
className="flex-1"
/>
- <Button
- size="xs"
- disabled={pastedCode.trim().length === 0 || completing}
- onClick={onComplete}
- >
+ <Button disabled={pastedCode.trim().length === 0 || completing} onClick={onComplete}>
{completing ? <LoaderIcon className="size-3.5 animate-spin" /> : null}
{t("Connect")}
</Button>
diff --git a/apps/web/src/components/settings/VoiceApiConnections.tsx b/apps/web/src/components/settings/VoiceApiConnections.tsx
index e27d38b78..074162bf7 100644
--- a/apps/web/src/components/settings/VoiceApiConnections.tsx
+++ b/apps/web/src/components/settings/VoiceApiConnections.tsx
@@ -259,13 +259,13 @@ export function VoiceApiProviderRow({
placeholder={keyLabel}
aria-label={keyLabel}
/>
- <Button size="xs" type="submit" disabled={disabled || apiKey.trim().length === 0}>
+ <Button size="sm" type="submit" disabled={disabled || apiKey.trim().length === 0}>
{spinner("connect")}
{connected ? "Save key" : "Connect"}
</Button>
{editing ? (
<Button
- size="xs"
+ size="sm"
variant="ghost-muted"
type="button"
onClick={() => {