Skip to content

Commit

Permalink
fix: Line spaces on variable table
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Nov 11, 2024
1 parent 7ebf9bb commit 115a193
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ const CollapsibleTableRow: React.FC<CollapsibleTableRowProps> = ({
</span>
)}
</TableCell>
<TableCell onClick={(e) => e.stopPropagation()}>
<TableCell
onClick={(e) => e.stopPropagation()}
className="py-0"
>
{links != null && (
<div className="flex items-center gap-1">
{Object.entries(links).map(([label, url]) => (
Expand All @@ -211,7 +214,7 @@ const CollapsibleTableRow: React.FC<CollapsibleTableRowProps> = ({
rel="noopener noreferrer"
className={buttonVariants({
variant: "secondary",
size: "sm",
size: "xs",
className: "gap-1",
})}
>
Expand Down Expand Up @@ -302,7 +305,10 @@ const CollapsibleTableRow: React.FC<CollapsibleTableRowProps> = ({
</span>
)}
</TableCell>
<TableCell onClick={(e) => e.stopPropagation()}>
<TableCell
onClick={(e) => e.stopPropagation()}
className="py-0"
>
{links != null && (
<div className="flex items-center gap-1">
{Object.entries(links).map(([label, url]) => (
Expand All @@ -313,7 +319,7 @@ const CollapsibleTableRow: React.FC<CollapsibleTableRowProps> = ({
rel="noopener noreferrer"
className={buttonVariants({
variant: "secondary",
size: "sm",
size: "xs",
className: "gap-1",
})}
>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const buttonVariants = cva(
size: {
default: "h-9 px-4 py-2",
sm: "h-8 rounded-md px-3 text-xs",
xs: "h-7 rounded-md px-2 text-xs",
lg: "h-10 rounded-md px-8",
icon: "h-9 w-9",
},
Expand Down

0 comments on commit 115a193

Please sign in to comment.