mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Responsive fixes for settings pages.
This commit is contained in:
parent
4a1c6f40a6
commit
b32ced5501
16 changed files with 97 additions and 161 deletions
|
|
@ -8,14 +8,14 @@ export default function MobileMenu({ items = [], onClose }) {
|
|||
|
||||
const Items = ({ items, className }) => (
|
||||
<div className={classNames(styles.items, className)}>
|
||||
{items.map(({ label, value, children }) => {
|
||||
const selected = pathname === value;
|
||||
{items.map(({ label, url, children }) => {
|
||||
const selected = pathname.startsWith(url);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Link
|
||||
key={value}
|
||||
href={value}
|
||||
key={url}
|
||||
href={url}
|
||||
className={classNames(styles.item, { [styles.selected]: selected })}
|
||||
onClick={onClose}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue