Implemented flexbox styling for root layout
This commit is contained in:
1 parent
9da39c8f91
commit
83f260c42d
6 files changed
+21
-27
No files matched your search
@@ -1,10 +1,13 @@
|
||||
.home-layout {
|
||||
.main-content {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: max-content;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-left: 250px;
|
||||
flex: 1;
|
||||
/* padding: 20px; */
|
||||
.main-content>div:nth-child(2){
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
@@ -12,17 +12,17 @@ const HomeLayout = () => {
|
||||
const { user, msg } = authState;
|
||||
return (
|
||||
<div className="home-layout">
|
||||
<DashboardSidebar />
|
||||
<NavBar />
|
||||
<div className="main-content">
|
||||
<NavBar />
|
||||
<DashboardSidebar />
|
||||
{/* Remove me later */}
|
||||
{user && <p>{user.firstname}</p>}
|
||||
{user && <p>{user.lastname}</p>}
|
||||
{user && <p>{user.email}</p>}
|
||||
{msg && <p>Msg: {msg}</p>}
|
||||
{/* I am a demo */}
|
||||
<Outlet />
|
||||
</div>
|
||||
<Outlet />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user