Skip to content

Commit

Permalink
fix(Grid): updates default minWidth of GridCell
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-kumawat committed Sep 1, 2020
1 parent d2a28bc commit d054f2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/components/organisms/grid/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const Cell = (props: CellProps) => {

const {
width,
minWidth = 100,
minWidth = 48,
maxWidth = 800
} = getCellSize(cellType);

Expand Down
16 changes: 7 additions & 9 deletions core/components/organisms/grid/columnUtility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,25 @@ export function getWidth(this: Grid, width: React.ReactText) {
export function getCellSize(cellType: CellType) {
const sizes: Record<CellType, any> = {
AVATAR: {
width: 50,
minWidth: 50
width: 48,
},
AVATAR_WITH_TEXT: {
width: 250,
width: 256,
},
AVATAR_WITH_META_LIST: {
width: 250,
width: 256,
},
ICON: {
width: 50,
minWidth: 50
width: 48,
},
STATUS_HINT: {
width: 100,
width: 96,
},
WITH_META_LIST: {
width: 200,
width: 176,
},
DEFAULT: {
width: 200,
width: 176,
},
};

Expand Down

0 comments on commit d054f2c

Please sign in to comment.