UI improvements.
This commit is contained in:
@@ -40,26 +40,26 @@ const SideBar = ({ tags, lists, handleToggleSidebar, toggle }) => {
|
|||||||
className="sidebar"
|
className="sidebar"
|
||||||
>
|
>
|
||||||
<SidebarHeader>
|
<SidebarHeader>
|
||||||
<h1>LinkWarden</h1>
|
<h3>LinkWarden</h3>
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
<SidebarContent className="sidebar-content">
|
<SidebarContent className="sidebar-content">
|
||||||
<Menu iconShape="circle">
|
<Menu iconShape="circle">
|
||||||
<MenuItem icon={<h2 className="sidebar-icon"></h2>}>
|
<MenuItem icon={<h2 className="sidebar-icon"></h2>}>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<h3 className="menu-item">All</h3>
|
<div className="menu-item">All</div>
|
||||||
</Link>
|
</Link>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
||||||
<SubMenu
|
<SubMenu
|
||||||
icon={<h2 className="sidebar-icon"></h2>}
|
icon={<h2 className="sidebar-icon"></h2>}
|
||||||
suffix={<span className="badge">{sortedTags.length}</span>}
|
suffix={<span className="badge">{sortedTags.length}</span>}
|
||||||
title={<h3 className="menu-item">Lists</h3>}
|
title={<div className="menu-item">Lists</div>}
|
||||||
>
|
>
|
||||||
{sortedLists.map((e, i) => {
|
{sortedLists.map((e, i) => {
|
||||||
const path = `/lists/${e}`;
|
const path = `/lists/${e}`;
|
||||||
return (
|
return (
|
||||||
<MenuItem prefix={"#"} key={i}>
|
<MenuItem prefix={<div className="sidebar-item-prefix"></div>} key={i}>
|
||||||
<Link to={path}>{e}</Link>
|
<Link className="sidebar-entity" to={path}>{e}</Link>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -68,13 +68,13 @@ const SideBar = ({ tags, lists, handleToggleSidebar, toggle }) => {
|
|||||||
<SubMenu
|
<SubMenu
|
||||||
icon={<h2 className="sidebar-icon"></h2>}
|
icon={<h2 className="sidebar-icon"></h2>}
|
||||||
suffix={<span className="badge">{sortedTags.length}</span>}
|
suffix={<span className="badge">{sortedTags.length}</span>}
|
||||||
title={<h3 className="menu-item">Tags</h3>}
|
title={<div className="menu-item">Tags</div>}
|
||||||
>
|
>
|
||||||
{sortedTags.map((e, i) => {
|
{sortedTags.map((e, i) => {
|
||||||
const path = `/tags/${e}`;
|
const path = `/tags/${e}`;
|
||||||
return (
|
return (
|
||||||
<MenuItem prefix={"#"} key={i}>
|
<MenuItem prefix={<div className="sidebar-item-prefix">#</div>} key={i}>
|
||||||
<Link to={path}>{e}</Link>
|
<Link className="sidebar-entity" to={path}>{e}</Link>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar h1 {
|
.sidebar h3 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,3 +47,11 @@
|
|||||||
.pro-inner-item {
|
.pro-inner-item {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-entity {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-item-prefix {
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user