Skip to content

Commit 1e3e7cc

Browse files
committed
Fixed rounded corners for the AI query panel
1 parent 64c8a68 commit 1e3e7cc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

apps/webapp/app/components/code/AIQueryInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function AIQueryInput({
250250
<div className="flex flex-col">
251251
{/* Gradient border wrapper like the schedules AI input */}
252252
<div
253-
className="rounded-md p-px overflow-hidden"
253+
className="overflow-hidden rounded-md p-px"
254254
style={{ background: "linear-gradient(to bottom right, #E543FF, #286399)" }}
255255
>
256256
<div className="overflow-hidden rounded-md bg-background-bright">
@@ -352,7 +352,7 @@ export function AIQueryInput({
352352
className="overflow-hidden"
353353
>
354354
<div className="px-1">
355-
<div className="rounded-b-md border-x border-b border-grid-dimmed bg-charcoal-850 p-3 pb-1">
355+
<div className="rounded-b-lg border-x border-b border-grid-dimmed bg-charcoal-850 p-3 pb-1">
356356
<div className="mb-1 flex items-center justify-between">
357357
<div className="flex items-center gap-1">
358358
{isLoading ? (
@@ -400,7 +400,7 @@ export function AIQueryInput({
400400
</Button>
401401
)}
402402
</div>
403-
<div className="streamdown-container max-h-96 overflow-y-auto rounded-lg text-xs text-text-dimmed scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600">
403+
<div className="streamdown-container max-h-96 overflow-y-auto text-xs text-text-dimmed scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600">
404404
<Suspense fallback={<p className="whitespace-pre-wrap">{thinking}</p>}>
405405
<StreamdownRenderer isAnimating={isLoading}>{thinking}</StreamdownRenderer>
406406
</Suspense>

apps/webapp/app/tailwind.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@
152152
--foreground: 210 20% 90%;
153153
--border: 217 19% 27%;
154154

155+
/* Code block styling */
156+
& [data-code-block-container] {
157+
@apply rounded border-charcoal-650 my-0;
158+
}
159+
& [data-code-block] {
160+
border-top: none;
161+
}
162+
155163
& p {
156164
@apply my-1;
157165
}

0 commit comments

Comments
 (0)