Skip to content

Commit

Permalink
need to calc width with scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Apr 5, 2024
1 parent fabe869 commit 2da8a24
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/components/tablev2/Tablestyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,10 @@ export const HeadRow = styled.div<HeadRowType>`
align-items: center;
gap: ${spacing.r16};
height: 2.286rem;
width: 100%;
// TO DO : check how we want to handle the scrollbar, for now it's on top of the border
// this calc doesn't work with the scrollbar and change nothing
/* width: ${(props) =>
width: ${(props) =>
props.hasScrollBar
? `calc(100% - ${props.scrollBarWidth}px - ${borderSize} )!important` // -4px for border
: `calc(100% - ${borderSize} ) !important`}; */
: `calc(100% - ${borderSize} ) !important`};
height: ${(props) => tableRowHeight[props.rowHeight]}rem;
table-layout: fixed;
color: ${(props) => props.theme.textPrimary};
Expand Down

0 comments on commit 2da8a24

Please sign in to comment.