Merge pull request #1108 from buster-so/big-nate-bus-1891-tables-on-reports-should-hug-rows-have-a-max-height

Big nate bus 1891 tables on reports should hug rows have a max height
This commit is contained in:
Nate Kelley 2025-09-24 08:14:22 -06:00 committed by GitHub
commit 62c77455c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,10 @@ export const MetricElement = withHOC(
const isSelected = useSelected();
const isFocused = useFocused();
const showFocused = isSelected && isFocused;
const className = cn(showFocused && 'ring-ring bg-brand/5 ring-1 ring-offset-4');
const className = cn(
'max-h-[390px]',
showFocused && 'ring-ring bg-brand/5 ring-1 ring-offset-4'
);
const { data: selectedChartType } = useGetMetric(
{ id: metricId },
@ -130,7 +133,7 @@ const MetricResizeContainer: React.FC<PropsWithChildren<{ isTable: boolean }>> =
<div
// ref={handleRef}
className={cn(
!isTable && 'min-h-64',
!isTable && 'min-h-[390px]',
!height && !isTable && 'min-h-[390px]'
// isDragging && 'cursor-grabbing opacity-50'
)}