Skip to content

Commit

Permalink
Reduce cells padding
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Dec 2, 2024
1 parent 019e5ea commit 74365f2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions packages/lake/src/components/Cells.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ const justifyContentStyles = StyleSheet.create({
});
/* eslint-enable react-native/no-unused-styles */

const fadeOnLeftMask = `linear-gradient(to right, ${invariantColors.transparent}, ${invariantColors.black} ${spacings[16]})`;
const fadeOnRightMask = `linear-gradient(to left, ${invariantColors.transparent}, ${invariantColors.black} ${spacings[16]})`;
const fadeOnLeftMask = `linear-gradient(to right, ${invariantColors.transparent}, ${invariantColors.black} ${spacings[12]})`;
const fadeOnRightMask = `linear-gradient(to left, ${invariantColors.transparent}, ${invariantColors.black} ${spacings[12]})`;

const styles = StyleSheet.create({
cell: {
flexDirection: "row",
flexGrow: 1,
flexShrink: 1,
paddingHorizontal: spacings[16],
paddingHorizontal: spacings[12],
},
cellContentContainer: {
flexGrow: 1,
Expand Down Expand Up @@ -103,10 +103,6 @@ const styles = StyleSheet.create({
paddingRight: 0,
paddingLeft: spacings[8],
},
actionCell: {
paddingVertical: spacings[16],
paddingHorizontal: spacings[8],
},
});

type Align = "left" | "center" | "right";
Expand Down Expand Up @@ -500,9 +496,10 @@ export const EndAlignedCell = (props: Except<CellProps, "align">) => (
<Cell align="right" {...props} />
);

export const ActionCell = ({ style, ...props }: CellProps) => (
<Cell {...props} style={[styles.actionCell, style]} />
);
/**
* @deprecated Use `<Cell align="right" />` instead
*/
export const ActionCell = (props: CellProps) => <Cell align="right" {...props} />;

/**
* @deprecated Use <ActionCell /> instead
Expand Down

0 comments on commit 74365f2

Please sign in to comment.