mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updated menu view for mobile.
This commit is contained in:
parent
a8f429c9ee
commit
a43422d81f
5 changed files with 70 additions and 5 deletions
|
|
@ -9,11 +9,17 @@ export function SideNav({
|
|||
items,
|
||||
shallow = true,
|
||||
scroll = false,
|
||||
className,
|
||||
onSelect = () => {},
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
return (
|
||||
<Menu items={items} selectedKey={selectedKey} className={styles.menu} onSelect={onSelect}>
|
||||
<Menu
|
||||
items={items}
|
||||
selectedKey={selectedKey}
|
||||
className={classNames(styles.menu, className)}
|
||||
onSelect={onSelect}
|
||||
>
|
||||
{({ key, label, url }) => (
|
||||
<Item
|
||||
key={key}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export function ListTable({
|
|||
<div className={styles.metric}>{metric}</div>
|
||||
</div>
|
||||
<div className={styles.body}>
|
||||
{data?.length === 0 && <Empty />}
|
||||
{data?.length === 0 && <Empty className={styles.empty} />}
|
||||
{virtualize && data.length > 0 ? (
|
||||
<FixedSizeList
|
||||
height={itemCount * ITEM_SIZE}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,10 @@
|
|||
z-index: -1;
|
||||
}
|
||||
|
||||
.empty {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 992px) {
|
||||
.body {
|
||||
height: auto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue