Skip to content

Commit

Permalink
chore: add padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ychhabra-eightfold committed Feb 27, 2023
1 parent 29bbb9d commit f4eb96d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Table/Internal/Body/Scroller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ScrollerProps, ScrollerRef } from '../OcTable.types';
import styles from '../octable.module.scss';

const BUTTON_HEIGHT: number = 36;
const BUTTON_PADDING: number = 2;

export const Scroller = React.forwardRef(
<RecordType,>(
Expand Down Expand Up @@ -158,7 +159,7 @@ export const Scroller = React.forwardRef(
<SecondaryButton
classNames={styles.scrollerButton}
style={{
left: leftButtonOffset,
left: leftButtonOffset + BUTTON_PADDING,
opacity: leftButtonVisible && visible ? 1 : 0,
top: getButtonTop(),
}}
Expand All @@ -173,7 +174,7 @@ export const Scroller = React.forwardRef(
<SecondaryButton
classNames={styles.scrollerButton}
style={{
right: rightButtonOffset,
right: rightButtonOffset + BUTTON_PADDING,
opacity: rightButtonVisible && visible ? 1 : 0,
top: getButtonTop(),
}}
Expand Down

0 comments on commit f4eb96d

Please sign in to comment.