Skip to content

Commit

Permalink
fix: fix padding for frequency count in rtl case
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Apr 13, 2023
1 parent 5d4af3a commit af8b795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function RowColumn({ index, rowIndex, columnIndex, style, data }) {
onContextMenu={preventContextMenu}
tabIndex={isFirstElement && keyboard.innerTabStops ? 0 : -1}
data-n={cell?.qElemNumber}
direction={direction}
>
{cell?.qFrequency && (
<Histogram
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ItemGrid = styled(Grid, {
shouldForwardProp: (prop) =>
!['dataLayout', 'layoutOrder', 'itemPadding', 'cellPaddingRight', 'direction'].includes(prop),
})(({ dataLayout, layoutOrder, itemPadding, cellPaddingRight, direction }) => {
const att = `padding${direction === 'rtl' ? 'left' : 'right'}`;
const att = `padding${direction === 'rtl' ? 'Left' : 'Right'}`;
return {
[`&.${classes.fieldRoot}`]: {
...getItemSizes({ dataLayout, layoutOrder, itemPadding }),
Expand Down

0 comments on commit af8b795

Please sign in to comment.