diff --git a/apps/web/components/settings/integrations.tsx b/apps/web/components/settings/integrations.tsx index 125cec90..355a51e1 100644 --- a/apps/web/components/settings/integrations.tsx +++ b/apps/web/components/settings/integrations.tsx @@ -84,7 +84,7 @@ function PillButton({ className={cn( "relative flex items-center justify-center gap-2", "bg-[#0D121A]", - "rounded-full h-11 px-4 flex-1", + "rounded-full h-11 min-w-0 px-3 flex-1 sm:px-4", "cursor-pointer transition-opacity hover:opacity-80", "shadow-[inset_1.5px_1.5px_4.5px_rgba(0,0,0,0.7)]", "disabled:opacity-50 disabled:cursor-not-allowed", @@ -244,6 +244,15 @@ export default function Integrations() { analytics.extensionInstallClicked() } + const addShortcutLabel = + createApiKeyMutation.isPending && selectedShortcutType === "add" + ? "Creating..." + : "Add shortcut" + const searchShortcutLabel = + createApiKeyMutation.isPending && selectedShortcutType === "search" + ? "Creating..." + : "Search shortcut" + const handleDialogClose = (open: boolean) => { setShowApiKeyModal(open) if (!open) { @@ -331,7 +340,7 @@ export default function Integrations() { -
+
handleShortcutClick("add")} disabled={createApiKeyMutation.isPending} @@ -342,11 +351,14 @@ export default function Integrations() { ) : ( )} - - {createApiKeyMutation.isPending && - selectedShortcutType === "add" - ? "Creating..." - : "Add memory shortcut"} + + {addShortcutLabel} + + {createApiKeyMutation.isPending && + selectedShortcutType === "add" + ? "Creating..." + : "Add memory shortcut"} + )} - - {createApiKeyMutation.isPending && - selectedShortcutType === "search" - ? "Creating..." - : "Search memory shortcut"} + + {searchShortcutLabel} + + {createApiKeyMutation.isPending && + selectedShortcutType === "search" + ? "Creating..." + : "Search memory shortcut"} +
@@ -397,7 +412,7 @@ export default function Integrations() {
-
+
)} - + {createRaycastApiKeyMutation.isPending ? "Generating..." : "Get API key"} @@ -415,7 +430,7 @@ export default function Integrations() { - + Install extension