Skip to content

Commit

Permalink
[table] Remove min width from editable components (palantir#285)
Browse files Browse the repository at this point in the history
`<EditableText>` has a default min-width of 80px,
which overflows the table cell.

Settings the minWidth prop to null will fix this.
  • Loading branch information
themadcreator authored Dec 1, 2016
1 parent 52a7a54 commit a248344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/table/src/cell/editableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class EditableCell extends React.Component<IEditableCellProps, {}> {
className={"bp-table-editable-name"}
defaultValue={value}
intent={intent}
minWidth={null}
onCancel={onCancel}
onChange={onChange}
onConfirm={onConfirm}
Expand Down
1 change: 1 addition & 0 deletions packages/table/src/headers/editableName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class EditableName extends React.Component<IEditableNameProps, {}> {
className={classNames(className, "bp-table-editable-name")}
defaultValue={name}
intent={intent}
minWidth={null}
onCancel={onCancel}
onChange={onChange}
onConfirm={onConfirm}
Expand Down

0 comments on commit a248344

Please sign in to comment.