Skip to content

Commit

Permalink
fix: adjust table box height calculation (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozanagy authored Sep 27, 2024
1 parent d62647d commit 64631d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface PointsTableProps {
}

export function PointsTable({ items }: PointsTableProps): React.JSX.Element {
const dynamicHeight = items ? items.length * 65 + 20 : 20;
const dynamicHeight = items ? items.length * 59 + 20 : 20;

return (
<GenericTableLayout height={`${dynamicHeight}px`} width={'50%'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface MerchantDetailsTableProps {
}

export function MerchantDetailsTable({ items }: MerchantDetailsTableProps): React.JSX.Element {
const dynamicHeight = items ? items.length * 65 + 20 : 20;
const dynamicHeight = items ? items.length * 59 + 20 : 20;

return (
<GenericTableLayout height={`${dynamicHeight}px`}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ProtocolHistoryTableProps {
}

export function ProtocolHistoryTable({ items }: ProtocolHistoryTableProps): React.JSX.Element {
const dynamicHeight = items ? items.length * 65 + 20 : 20;
const dynamicHeight = items ? items.length * 59 + 20 : 20;

return (
<GenericTableLayout height={`${dynamicHeight}px`} width={'50%'}>
Expand Down

0 comments on commit 64631d0

Please sign in to comment.