feat(Design): navigation rail redisign

This commit is contained in:
Kentai Radiquum 2024-05-11 07:00:29 +05:00
parent 94f11d5dbd
commit 6bd46e8437
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 34 additions and 21 deletions

View file

@ -56,7 +56,8 @@ export const App = (props) => {
return (
<body>
<div>
<div style={{ display: "flex", "flex-direction": "row" }}>
<div style={{ "padding-inline-start": "0" }}>
<NavigationRail
colorPicker={colorPicker}
settingsPopup={settingsPopup}
@ -81,6 +82,7 @@ export const App = (props) => {
<main className="responsive padding" style={{ overflow: "hidden" }}>
{props.children}
</main>
</div>
</body>
);
};

View file

@ -42,7 +42,18 @@ export const NavigationRail = (props) => {
];
return (
<nav className="left">
<nav
className="left border round margin"
style={{
"inline-size": "unset",
position: "sticky",
top: "1rem",
left: "0",
"min-height": "calc(100vh - (var(---margin) * 2))",
"background-color": "var(--surface)",
"padding-block": "1rem",
}}
>
{userStore.isAuth && userStore.user ? (
<Link className="circle transparent " href="/profile">
<Image