Fix error created by a non-menu item inside a menu
This commit is contained in:
@@ -128,18 +128,18 @@ export default function MainLayout(props) {
|
|||||||
</Head>
|
</Head>
|
||||||
|
|
||||||
<Sider width={240} className="side-nav">
|
<Sider width={240} className="side-nav">
|
||||||
|
<h1 className="owncast-title">
|
||||||
|
<span className="logo-container">
|
||||||
|
<OwncastLogo />
|
||||||
|
</span>
|
||||||
|
<span className="title-label">Owncast Admin</span>
|
||||||
|
</h1>
|
||||||
<Menu
|
<Menu
|
||||||
defaultSelectedKeys={[route.substring(1) || 'home']}
|
defaultSelectedKeys={[route.substring(1) || 'home']}
|
||||||
defaultOpenKeys={openMenuItems}
|
defaultOpenKeys={openMenuItems}
|
||||||
mode="inline"
|
mode="inline"
|
||||||
className="menu-container"
|
className="menu-container"
|
||||||
>
|
>
|
||||||
<h1 className="owncast-title">
|
|
||||||
<span className="logo-container">
|
|
||||||
<OwncastLogo />
|
|
||||||
</span>
|
|
||||||
<span className="title-label">Owncast Admin</span>
|
|
||||||
</h1>
|
|
||||||
<Menu.Item key="home" icon={<HomeOutlined />}>
|
<Menu.Item key="home" icon={<HomeOutlined />}>
|
||||||
<Link href="/">Home</Link>
|
<Link href="/">Home</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
h1.owncast-title {
|
h1.owncast-title {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
padding-bottom: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -20,7 +21,9 @@
|
|||||||
|
|
||||||
.logo-container {
|
.logo-container {
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
padding: 0.35rem;
|
padding-top: 4px;
|
||||||
|
padding-right: 6px;
|
||||||
|
padding-left: 6px;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user