Skip to content

Commit

Permalink
1544: MR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben van Leeuwen committed Dec 4, 2024
1 parent cc2d67d commit 003def5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { useWithOrchestratorTheme } from '@/hooks';
import type { onUpdateColumWidth } from './WfoTableHeaderRow';
import { getWfoTableStyles } from './styles';

const MINIMUM_COLUMN_WIDTH = 50;

interface WfoDragHandlerProps {
headerRowRef: React.RefObject<HTMLTableRowElement>;
fieldName: string;
Expand Down Expand Up @@ -49,13 +51,15 @@ export const WfoDragHandler: FC<WfoDragHandlerProps> = ({

onUpdateColumWidth(
fieldName,
newWidth > 50 ? newWidth : 50,
newWidth > MINIMUM_COLUMN_WIDTH
? newWidth
: MINIMUM_COLUMN_WIDTH,
);
resetPosition();
}
}}
>
<div css={dragAndDropStyle}>&nbsp;</div>
<div css={dragAndDropStyle} />
</Draggable>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export const getWfoTableStyles = ({ theme, isDarkThemeActive }: WfoTheme) => {
? theme.colors.mediumShade
: theme.colors.header,
},
'&::after': {
content: '""',
},
});
return {
tableContainerStyle,
Expand Down

0 comments on commit 003def5

Please sign in to comment.