Skip to content

Commit 450aa52

Browse files
Force the height of the Monaco Editor
1 parent 235624c commit 450aa52

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/sql/editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export function SQLEditor({
489489
className={cn('relative', className)}
490490
style={
491491
{
492-
height: '100%',
492+
height: '35vh',
493493
userSelect: 'none',
494494
WebkitUserSelect: 'none',
495495
MozUserSelect: 'none',

src/components/sql/results.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function ResultsSelectionToolbar({
149149
}: ResultsSelectionToolbarProps): React.ReactNode {
150150
return (
151151
<div
152-
className="sticky bottom-0 h-[68px] min-h-[68px] border-t backdrop-blur-sm z-[60] bg-background flex items-center justify-between px-3 py-4 flex-shrink-0"
152+
className="sticky bottom-0 h-[68px] min-h-[68px] border-t border-b-2 backdrop-blur-sm z-[60] bg-background flex items-center justify-between px-3 py-2 flex-shrink-0"
153153
data-selection-toolbar="true"
154154
>
155155
{result && result.data.length > 0 && (
@@ -1542,7 +1542,7 @@ export function ResultsPanel({
15421542
<TableHead
15431543
key={index}
15441544
className={cn(
1545-
'text-foreground h-10 px-3 text-left align-middle whitespace-nowrap border-y-2 font-bold transition-colors cursor-pointer select-none border-b-2 bg-muted/50 hover:bg-muted/50 border-r',
1545+
'text-foreground h-10 px-3 text-left align-middle whitespace-nowrap border-y-2 font-bold transition-colors cursor-pointer select-none border-b-3 bg-muted/50 hover:bg-muted/50 border-r',
15461546
hoveredColumn === column.name
15471547
? 'bg-primary/10'
15481548
: 'hover:bg-muted/50',
@@ -1653,9 +1653,9 @@ export function ResultsPanel({
16531653

16541654
// Main render with animated state transitions
16551655
return (
1656-
<div className='bg-background relative flex flex-col h-full'>
1656+
<div className='bg-background relative flex flex-col h-full max-h-[60vh]'>
16571657
{/* Unified results summary toolbar - always present with consistent height */}
1658-
<div className="h-[68px] min-h-[68px] flex items-center justify-between px-3 py-4 bg-background border-t border-b transition-all duration-200 ease-in-out flex-shrink-0">
1658+
<div className="h-[68px] max-h-[68px] flex items-center justify-between px-3 py-2 bg-background border-t border-b transition-all duration-200 ease-in-out flex-shrink-0">
16591659
<div className="flex items-center gap-3 text-xs min-w-0 flex-1 transition-all duration-200 ease-in-out">
16601660
<span className="font-medium text-foreground transition-all duration-200 ease-in-out min-w-[92px] inline-block">
16611661
{isLoading

0 commit comments

Comments
 (0)