Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Oct 5, 2020
1 parent c28b171 commit dca7ff3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ export function DimensionEditor(props: DimensionEditorProps) {
className={sideNavItems.length > 3 ? 'lnsIndexPatternDimensionEditor__columns' : ''}
gutterSize="none"
listItems={
// add a padding item containing a non breakable space if the number of operations is not even
// otherwise the column layout will break within an element
sideNavItems.length % 2 === 1 ? [...sideNavItems, { label: '\u00a0' }] : sideNavItems
}
maxWidth={false}
Expand Down

0 comments on commit dca7ff3

Please sign in to comment.