Skip to content

Commit 95443d2

Browse files
committed
Fixes table hover state height
1 parent d8f3ca0 commit 95443d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ function CopyableCell({
718718
return (
719719
<div
720720
className={cn(
721-
"relative flex w-full items-center overflow-hidden px-2 py-1.5",
721+
"relative flex h-full w-full items-center overflow-hidden px-2",
722722
"bg-background-bright group-hover/row:bg-charcoal-750",
723723
"font-mono text-xs text-text-dimmed group-hover/row:text-text-bright",
724724
"[&_a:focus-visible]:underline [&_a:focus-visible]:underline-offset-[3px] [&_a:focus-visible]:outline-none",
@@ -727,7 +727,7 @@ function CopyableCell({
727727
onMouseEnter={() => setIsHovered(true)}
728728
onMouseLeave={() => setIsHovered(false)}
729729
>
730-
<span className="flex h-4 items-center truncate">{children}</span>
730+
<span className="flex items-center truncate">{children}</span>
731731
{isHovered && (
732732
<span
733733
onClick={(e) => {
@@ -1172,6 +1172,7 @@ export const TSQLResultsTable = memo(function TSQLResultsTable({
11721172
position: "absolute",
11731173
transform: `translateY(${virtualRow.start}px)`,
11741174
width: "100%",
1175+
height: `${virtualRow.size}px`,
11751176
}}
11761177
>
11771178
{row.getVisibleCells().map((cell) => {

0 commit comments

Comments
 (0)