mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-02 04:49:05 +00:00
refactor: improve active styles for navigation buttons
This commit is contained in:
committed by
Carlos Valente
parent
26a24449de
commit
4c6acc4013
@@ -45,7 +45,7 @@ function NavigationMenu(props: NavigationMenuProps) {
|
|||||||
|
|
||||||
const { isOpen: isOpenRename, onOpen: onRenameOpen, onClose: onCloseRename } = useDisclosure();
|
const { isOpen: isOpenRename, onOpen: onRenameOpen, onClose: onCloseRename } = useDisclosure();
|
||||||
const { fullscreen, toggle } = useFullscreen();
|
const { fullscreen, toggle } = useFullscreen();
|
||||||
const { toggleMirror } = useViewOptionsStore();
|
const { mirror, toggleMirror } = useViewOptionsStore();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const menuRef = useRef<HTMLDivElement | null>(null);
|
const menuRef = useRef<HTMLDivElement | null>(null);
|
||||||
@@ -65,7 +65,7 @@ function NavigationMenu(props: NavigationMenuProps) {
|
|||||||
<DrawerBody padding={0}>
|
<DrawerBody padding={0}>
|
||||||
<div className={style.buttonsContainer}>
|
<div className={style.buttonsContainer}>
|
||||||
<div
|
<div
|
||||||
className={style.link}
|
className={cx([style.link, fullscreen && style.current])}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
role='button'
|
role='button'
|
||||||
onClick={toggle}
|
onClick={toggle}
|
||||||
@@ -77,7 +77,7 @@ function NavigationMenu(props: NavigationMenuProps) {
|
|||||||
{fullscreen ? <IoContract /> : <IoExpand />}
|
{fullscreen ? <IoContract /> : <IoExpand />}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={style.link}
|
className={cx([style.link, mirror && style.current])}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
role='button'
|
role='button'
|
||||||
onClick={() => toggleMirror()}
|
onClick={() => toggleMirror()}
|
||||||
|
|||||||
Reference in New Issue
Block a user