Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions apps/webapp/app/components/query/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,22 @@ const QueryEditorForm = forwardRef<
variant="primary/small"
disabled={isLoading || !query.trim()}
shortcut={{ modifiers: ["mod"], key: "enter", enabledOnInputElements: true }}
LeadingIcon={isLoading ? <Spinner className="size-4" color="white" /> : undefined}
className={
isLoading
? "relative !text-transparent [&_*]:!border-transparent [&_*]:!text-transparent"
: undefined
}
>
{isLoading ? "Querying..." : "Query"}
{isLoading ? (
<>
Query
<span className="pointer-events-none absolute inset-0 flex items-center justify-center">
<Spinner className="size-4 opacity-50" color="white" />
</span>
</>
) : (
"Query"
)}
</Button>
</div>
</fetcher.Form>
Expand Down Expand Up @@ -996,7 +1009,7 @@ function QueryTitle({
if (isTitleLoading)
return (
<span className="flex items-center gap-2 text-text-dimmed">
<Spinner className="size-3" /> Generating title…
<Spinner className="size-4" /> Generating title…
</span>
);

Expand Down