mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
This commit is contained in:
parent
9b310dacef
commit
abfb78bb98
3 changed files with 5 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ export function MobileNav() {
|
||||||
{({ close }) => {
|
{({ close }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NavMenu padding="3" onItemClick={close} border="bottom">
|
<NavMenu padding="3" onItemClick={close} border="bottom" width="100%">
|
||||||
<NavButton />
|
<NavButton />
|
||||||
{links.map(link => {
|
{links.map(link => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -144,12 +144,12 @@ export function ShareNav({
|
||||||
position={isMobile ? undefined : 'fixed'}
|
position={isMobile ? undefined : 'fixed'}
|
||||||
padding="3"
|
padding="3"
|
||||||
width={isMobile ? '100%' : collapsed ? '60px' : '240px'}
|
width={isMobile ? '100%' : collapsed ? '60px' : '240px'}
|
||||||
maxHeight="100vh"
|
maxHeight="100dvh"
|
||||||
height="100vh"
|
height="100dvh"
|
||||||
border={isMobile ? undefined : 'right'}
|
border={isMobile ? undefined : 'right'}
|
||||||
borderColor={isMobile ? undefined : '4'}
|
borderColor={isMobile ? undefined : '4'}
|
||||||
>
|
>
|
||||||
<Row as="header" gap alignItems="center" paddingY="3" justifyContent="space-between">
|
<Row as="header" gap alignItems="center" justifyContent="space-between">
|
||||||
{!collapsed && (
|
{!collapsed && (
|
||||||
<a href={logoUrl} target="_blank" rel="noopener" style={{ marginLeft: 12 }}>
|
<a href={logoUrl} target="_blank" rel="noopener" style={{ marginLeft: 12 }}>
|
||||||
<Row alignItems="center" gap>
|
<Row alignItems="center" gap>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ export function MobileMenuButton(props: DialogProps) {
|
||||||
<Menu />
|
<Menu />
|
||||||
</Icon>
|
</Icon>
|
||||||
</Button>
|
</Button>
|
||||||
<Modal placement="left">
|
<Modal placement="left" offset="80px">
|
||||||
<Dialog variant="sheet" {...props} style={{ width: 'auto' }} />
|
<Dialog variant="sheet" {...props} style={{ width: 'auto' }} />
|
||||||
</Modal>
|
</Modal>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue