add max height to element

This commit is contained in:
Nate Kelley 2025-09-24 08:07:47 -06:00
parent d3938e7d6b
commit 7d359eb706
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,9 @@ 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(
showFocused && 'ring-ring bg-brand/5 ring-1 ring-offset-4'
);
const { data: selectedChartType } = useGetMetric(
{ id: metricId },
@ -130,6 +132,7 @@ const MetricResizeContainer: React.FC<PropsWithChildren<{ isTable: boolean }>> =
<div
// ref={handleRef}
className={cn(
'hax-h-[400px]',
!isTable && 'min-h-64',
!height && !isTable && 'min-h-[390px]'
// isDragging && 'cursor-grabbing opacity-50'