Skip to content

Commit

Permalink
Fixing show/hide menu button for the most narrow screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krulis committed Oct 15, 2019
1 parent f7182ba commit baf28df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"react-intl": "2.4.0",
"react-motion": "^0.5.2",
"react-redux": "^7.1.0",
"react-responsive": "^7.0.0",
"react-responsive": "^8.0.1",
"react-router": "^5.0.1",
"react-router-bootstrap": "^0.25.0",
"react-router-dom": "^5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/widgets/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class Header extends Component {

<div className="navbar navbar-static-top" role="navigation">
<ClientOnly>
<MediaQuery maxDeviceWidth={767} values={{ deviceWidth: 1368 }}>
<MediaQuery maxWidth={767}>
<a href="#" className="sidebar-toggle" role="button" onClick={this.toggleSidebarVisibility}>
<span className="sr-only">
<FormattedMessage id="app.header.toggleSidebar" defaultMessage="Show/hide sidebar" />
</span>
</a>
</MediaQuery>
<MediaQuery minDeviceWidth={768} values={{ deviceWidth: 1368 }}>
<MediaQuery minWidth={768}>
<a
href="#"
className="sidebar-toggle"
Expand Down
27 changes: 20 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3067,6 +3067,7 @@ css-loader@^3.1.0:
css-mediaquery@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/css-mediaquery/-/css-mediaquery-0.1.2.tgz#6a2c37344928618631c54bd33cedd301da18bea0"
integrity sha1-aiw3NEkoYYYxxUvTPO3TAdoYvqA=

css-modules-require-hook@^4.2.3:
version "4.2.3"
Expand Down Expand Up @@ -5242,8 +5243,9 @@ humps@^2.0.1:
integrity sha1-3QLqYIG9BWjcXQcxhEY5V7qe+ao=

hyphenate-style-name@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz#31160a36930adaf1fc04c6074f7eb41465d4ec4b"
version "1.0.3"
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.3.tgz#097bb7fa0b8f1a9cf0bd5c734cf95899981a9b48"
integrity sha512-EcuixamT82oplpoJ2XU4pDtKGWQ7b00CD9f1ug9IaQ3p1bkHMiKCZ9ut9QDI6qsa6cpUuB+A/I+zLtdNK4n2DQ==

iconv-lite@0.4.13:
version "0.4.13"
Expand Down Expand Up @@ -8150,11 +8152,16 @@ react-is@^16.6.0:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==

react-is@^16.7.0, react-is@^16.8.1, react-is@^16.9.0:
react-is@^16.7.0, react-is@^16.9.0:
version "16.9.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb"
integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==

react-is@^16.8.1:
version "16.10.2"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.10.2.tgz#984120fd4d16800e9a738208ab1fba422d23b5ab"
integrity sha512-INBT1QEgtcCCgvccr5/86CfD71fw9EPmDxgiJX4I2Ddr6ZsV6iFXsuby+qWJPtmNuMY0zByTsG4468P7nHuNWA==

react-lifecycles-compat@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
Expand Down Expand Up @@ -8196,14 +8203,15 @@ react-redux@^7.1.0:
prop-types "^15.7.2"
react-is "^16.9.0"

react-responsive@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/react-responsive/-/react-responsive-7.0.0.tgz#0abde0ccbb50e5e8407e3d61dd4696447e7ebd3c"
integrity sha512-RukaKD+UI/MIR+P8eUgVGURfiCafRvvcVnq41scT0eEQWHwDGliH/OAlrwIr1oyz8aKLGroZa+U8mTZV5ihPfA==
react-responsive@^8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/react-responsive/-/react-responsive-8.0.1.tgz#38022665dfb759227880f4221c475438a06a1771"
integrity sha512-caseFCvFFV4QW+JOl7inzDme+avoX4r7GPpQJ+04NCzIgbroV3BU0noPgHGxVCEFKm9IsgcKOBAf+6MqIUeQIg==
dependencies:
hyphenate-style-name "^1.0.0"
matchmediaquery "^0.3.0"
prop-types "^15.6.1"
shallow-equal "^1.1.0"

react-router-bootstrap@^0.25.0:
version "0.25.0"
Expand Down Expand Up @@ -9039,6 +9047,11 @@ sha.js@^2.4.0, sha.js@^2.4.8:
inherits "^2.0.1"
safe-buffer "^5.0.1"

shallow-equal@^1.1.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.0.tgz#fd828d2029ff4e19569db7e19e535e94e2d1f5cc"
integrity sha512-Z21pVxR4cXsfwpMKMhCEIO1PCi5sp7KEp+CmOpBQ+E8GpHwKOw2sEzk7sgblM3d/j4z4gakoWEoPcjK0VJQogA==

shallowequal@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.0.2.tgz#1561dbdefb8c01408100319085764da3fcf83f8f"
Expand Down

0 comments on commit baf28df

Please sign in to comment.