1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixes #2700: Fix button label wrapping in toolbar (#2708)

This commit is contained in:
Anjula Karunarathne 2020-03-15 09:49:24 +00:00 committed by GitHub
parent 61d3582357
commit c2e1c4c1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ class HeaderComponent extends React.Component {
}
determineButtonLabelState() {
const mediaQuery = window.matchMedia(`(max-width: ${550 * this.props.zoomFactor}px)`);
const mediaQuery = window.matchMedia(`(max-width: ${780 * this.props.zoomFactor}px)`);
const showButtonLabels = !mediaQuery.matches;
if (this.state.showButtonLabels !== showButtonLabels) {
@ -266,6 +266,7 @@ class HeaderComponent extends React.Component {
fontSize: theme.fontSize,
boxSizing: 'border-box',
cursor: 'default',
whiteSpace: 'nowrap',
};
if (showBackButton) {