mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: tweak home style
This commit is contained in:
@ -1,13 +1,23 @@
|
||||
import classNames from "classnames";
|
||||
import useCurrentUser from "@/hooks/useCurrentUser";
|
||||
import PersonalStatistics from "./PersonalStatistics";
|
||||
import SearchBar from "./SearchBar";
|
||||
import TagList from "./TagList";
|
||||
|
||||
const HomeSidebar = () => {
|
||||
interface Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const HomeSidebar = (props: Props) => {
|
||||
const currentUser = useCurrentUser();
|
||||
|
||||
return (
|
||||
<aside className="relative w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 sm:pt-6">
|
||||
<aside
|
||||
className={classNames(
|
||||
"relative w-full h-auto max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start",
|
||||
props.className
|
||||
)}
|
||||
>
|
||||
<SearchBar />
|
||||
<PersonalStatistics user={currentUser} />
|
||||
<TagList />
|
||||
|
Reference in New Issue
Block a user