Skip to content

Commit bfa8e3d

Browse files
committed
fix(EntityListButton): Fix New Exception button formatting
Avoid `New Exception` button being moved to new lines based on size. Fixes #725. fix #725
1 parent 7158675 commit bfa8e3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/editor/components/EntityListButtons.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import * as activeActions from '../actions/active'
88
import * as editorActions from '../actions/editor'
99
import * as snapshotActions from '../actions/snapshots'
1010
import {componentToText, entityIsNew} from '../util/objects'
11-
import BulkEditorModal from './BulkEditorModal'
12-
1311
import type {Entity, Feed} from '../../types'
1412
import type {EditorTables} from '../../types/reducers'
1513
import type {ImmutableList} from '../selectors/index'
1614

15+
import BulkEditorModal from './BulkEditorModal'
16+
1717
type State = {
1818
showBulkEditor: boolean
1919
}
@@ -169,7 +169,9 @@ export default class EntityListButtons extends Component<Props, State> {
169169
bsSize='small'
170170
data-test-id={`new-${activeComponent}-button`}
171171
disabled={entities && entities.findIndex(entityIsNew) !== -1}
172-
onClick={this._onClickNew}>
172+
onClick={this._onClickNew}
173+
// Setting the max width to display value so the button does not move to new line
174+
style={{maxWidth: '95.375px'}}>
173175
New {componentToText(activeComponent)}
174176
</Button>
175177
}

0 commit comments

Comments
 (0)