UI: adjust main layout
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
border-right: 2px solid #f3f4f6;
|
border-right: 2px solid #f3f4f6;
|
||||||
width: 20vw;
|
width: 330px;
|
||||||
padding: 16px 25px;
|
padding: 16px 25px;
|
||||||
height: 90vh;
|
height: 90vh;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
.menubar-item {
|
.menubar-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
width: calc(330px - .5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
@@ -97,4 +98,10 @@
|
|||||||
.left-menu {
|
.left-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.right-menu {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -100,31 +100,35 @@ export function Menubar({
|
|||||||
<>
|
<>
|
||||||
<header className="menubar">
|
<header className="menubar">
|
||||||
<div className="left-menu">
|
<div className="left-menu">
|
||||||
<MainTitle />
|
<div className="menu-items">
|
||||||
|
<MainTitle />
|
||||||
<div className="navigation-controls">
|
|
||||||
<ButtonGroup variant="outlined" size="small">
|
|
||||||
<Button onClick={() => handleNavigation("prev")}>
|
|
||||||
<ChevronLeftIcon />
|
|
||||||
</Button>
|
|
||||||
<Button onClick={() => handleNavigation("today")}>Today</Button>
|
|
||||||
<Button onClick={() => handleNavigation("next")}>
|
|
||||||
<ChevronRightIcon />
|
|
||||||
</Button>
|
|
||||||
</ButtonGroup>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="menu-items">
|
||||||
<div className="current-date-time">
|
<div className="navigation-controls">
|
||||||
<Typography variant="h6" component="div">
|
<ButtonGroup variant="outlined" size="small">
|
||||||
{currentDate.toLocaleDateString("en-US", {
|
<Button onClick={() => handleNavigation("prev")}>
|
||||||
month: "long",
|
<ChevronLeftIcon />
|
||||||
year: "numeric",
|
</Button>
|
||||||
})}
|
<Button onClick={() => handleNavigation("today")}>Today</Button>
|
||||||
</Typography>
|
<Button onClick={() => handleNavigation("next")}>
|
||||||
|
<ChevronRightIcon />
|
||||||
|
</Button>
|
||||||
|
</ButtonGroup>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="menu-items">
|
||||||
|
<div className="current-date-time">
|
||||||
|
<Typography variant="h6" component="div">
|
||||||
|
{currentDate.toLocaleDateString("en-US", {
|
||||||
|
month: "long",
|
||||||
|
year: "numeric",
|
||||||
|
})}
|
||||||
|
</Typography>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="right-menu">
|
<div className="right-menu">
|
||||||
<div className="menubar-item">
|
<div className="menu-items">
|
||||||
<FormControl size="small" sx={{ minWidth: 120, mr: 2 }}>
|
<FormControl size="small" sx={{ minWidth: 120, mr: 2 }}>
|
||||||
<Select
|
<Select
|
||||||
value={currentView}
|
value={currentView}
|
||||||
@@ -136,13 +140,15 @@ export function Menubar({
|
|||||||
<MenuItem value="timeGridDay">Day</MenuItem>
|
<MenuItem value="timeGridDay">Day</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
</div>
|
||||||
|
<div className="menu-items">
|
||||||
{applist.length > 0 && (
|
{applist.length > 0 && (
|
||||||
<IconButton onClick={handleOpen} sx={{ mr: 1 }}>
|
<IconButton onClick={handleOpen} sx={{ mr: 1 }}>
|
||||||
<AppsIcon />
|
<AppsIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="menu-items">
|
||||||
<Avatar
|
<Avatar
|
||||||
sx={{
|
sx={{
|
||||||
bgcolor: stringToColor(
|
bgcolor: stringToColor(
|
||||||
|
|||||||
Reference in New Issue
Block a user