Skip to content

Conversation

philip-cline
Copy link
Contributor

Avoid New Exception button being moved to new lines based on size. Fixes #725.

fix #725

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JSDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Changed the New Exception button maxWidth property to avoid the button being moved to a new line, as in issue #725.

Avoid `New Exception` button being moved to new lines based on size. Fixes #725.

fix #725
disabled={entities && entities.findIndex(entityIsNew) !== -1}
onClick={this._onClickNew}>
onClick={this._onClickNew}
// Setting the max width to display value so the button does not move to new line
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "based on the width of the 'New calendar' button".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add also a note that the width of the button text varies depending on the font used.

Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two adjustments to the comments, but it should be good to go.

Copy link
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job finding the fix! I'm a little confused about the sub pixel value, but I trust that there's a good reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New exception button pushed to new line

3 participants