UI improvements.
This commit is contained in:
@@ -40,26 +40,26 @@ const SideBar = ({ tags, lists, handleToggleSidebar, toggle }) => {
|
||||
className="sidebar"
|
||||
>
|
||||
<SidebarHeader>
|
||||
<h1>LinkWarden</h1>
|
||||
<h3>LinkWarden</h3>
|
||||
</SidebarHeader>
|
||||
<SidebarContent className="sidebar-content">
|
||||
<Menu iconShape="circle">
|
||||
<MenuItem icon={<h2 className="sidebar-icon"></h2>}>
|
||||
<Link to="/">
|
||||
<h3 className="menu-item">All</h3>
|
||||
<div className="menu-item">All</div>
|
||||
</Link>
|
||||
</MenuItem>
|
||||
|
||||
<SubMenu
|
||||
icon={<h2 className="sidebar-icon"></h2>}
|
||||
icon={<h2 className="sidebar-icon"></h2>}
|
||||
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) => {
|
||||
const path = `/lists/${e}`;
|
||||
return (
|
||||
<MenuItem prefix={"#"} key={i}>
|
||||
<Link to={path}>{e}</Link>
|
||||
<MenuItem prefix={<div className="sidebar-item-prefix"></div>} key={i}>
|
||||
<Link className="sidebar-entity" to={path}>{e}</Link>
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
@@ -68,13 +68,13 @@ const SideBar = ({ tags, lists, handleToggleSidebar, toggle }) => {
|
||||
<SubMenu
|
||||
icon={<h2 className="sidebar-icon"></h2>}
|
||||
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) => {
|
||||
const path = `/tags/${e}`;
|
||||
return (
|
||||
<MenuItem prefix={"#"} key={i}>
|
||||
<Link to={path}>{e}</Link>
|
||||
<MenuItem prefix={<div className="sidebar-item-prefix">#</div>} key={i}>
|
||||
<Link className="sidebar-entity" to={path}>{e}</Link>
|
||||
</MenuItem>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.sidebar h1 {
|
||||
.sidebar h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -47,3 +47,11 @@
|
||||
.pro-inner-item {
|
||||
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