mirror of
https://github.com/mue/mue.git
synced 2026-06-06 07:55:48 +02:00
fix: navbar options
This commit is contained in:
7711
pnpm-lock.yaml
generated
7711
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -48,9 +48,9 @@ function NavbarOptions() {
|
||||
|
||||
const NavbarOptions = () => {
|
||||
const NavbarButton = ({ icon, messageKey, settingName }) => {
|
||||
const [isDisabled, setIsDisabled] = useState(localStorage.getItem(settingName) === 'false');
|
||||
const [isDisabled, setIsDisabled] = useState(localStorage.getItem(settingName) !== 'true');
|
||||
const handleClick = () => {
|
||||
localStorage.setItem(settingName, !isDisabled);
|
||||
localStorage.setItem(settingName, isDisabled);
|
||||
|
||||
if (settingName === 'refresh') {
|
||||
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