mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
fix: navbar options
This commit is contained in:
7491
pnpm-lock.yaml
generated
7491
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -48,9 +48,9 @@ function NavbarOptions() {
|
|||||||
|
|
||||||
const NavbarOptions = () => {
|
const NavbarOptions = () => {
|
||||||
const NavbarButton = ({ icon, messageKey, settingName }) => {
|
const NavbarButton = ({ icon, messageKey, settingName }) => {
|
||||||
const [isDisabled, setIsDisabled] = useState(localStorage.getItem(settingName) === 'false');
|
const [isDisabled, setIsDisabled] = useState(localStorage.getItem(settingName) !== 'true');
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
localStorage.setItem(settingName, !isDisabled);
|
localStorage.setItem(settingName, isDisabled);
|
||||||
|
|
||||||
if (settingName === 'refresh') {
|
if (settingName === 'refresh') {
|
||||||
setShowRefreshOptions(!showRefreshOptions);
|
setShowRefreshOptions(!showRefreshOptions);
|
||||||
|
|||||||
19
src/scss/_mobile.scss
Normal file
19
src/scss/_mobile.scss
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
.mobile {
|
||||||
|
.navbar {
|
||||||
|
flex-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchComponents {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#modal {
|
||||||
|
// fill screen
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modalSidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user