Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
6320d042
Commit
6320d042
authored
Jan 04, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update home padding styles
parent
d7ed5958
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
HomeSidebar.tsx
web/src/components/HomeSidebar.tsx
+1
-1
HomeSidebarDrawer.tsx
web/src/components/HomeSidebarDrawer.tsx
+1
-1
MobileHeader.tsx
web/src/components/MobileHeader.tsx
+4
-2
Home.tsx
web/src/pages/Home.tsx
+3
-3
No files found.
web/src/components/HomeSidebar.tsx
View file @
6320d042
...
@@ -7,7 +7,7 @@ const HomeSidebar = () => {
...
@@ -7,7 +7,7 @@ const HomeSidebar = () => {
const
currentUser
=
useCurrentUser
();
const
currentUser
=
useCurrentUser
();
return
(
return
(
<
aside
className=
"relative w-full
px-4
h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 sm:pt-6"
>
<
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"
>
<
SearchBar
/>
<
SearchBar
/>
<
PersonalStatistics
user=
{
currentUser
}
/>
<
PersonalStatistics
user=
{
currentUser
}
/>
<
TagList
/>
<
TagList
/>
...
...
web/src/components/HomeSidebarDrawer.tsx
View file @
6320d042
...
@@ -26,7 +26,7 @@ const HomeSidebarDrawer = () => {
...
@@ -26,7 +26,7 @@ const HomeSidebarDrawer = () => {
<
Icon
.
Search
className=
"w-5 h-auto dark:text-gray-400"
/>
<
Icon
.
Search
className=
"w-5 h-auto dark:text-gray-400"
/>
</
IconButton
>
</
IconButton
>
<
Drawer
anchor=
"right"
size=
"sm"
open=
{
open
}
onClose=
{
toggleDrawer
(
false
)
}
>
<
Drawer
anchor=
"right"
size=
"sm"
open=
{
open
}
onClose=
{
toggleDrawer
(
false
)
}
>
<
div
className=
"w-full h-full px-
1
bg-zinc-100 dark:bg-zinc-900"
>
<
div
className=
"w-full h-full px-
5
bg-zinc-100 dark:bg-zinc-900"
>
<
HomeSidebar
/>
<
HomeSidebar
/>
</
div
>
</
div
>
</
Drawer
>
</
Drawer
>
...
...
web/src/components/MobileHeader.tsx
View file @
6320d042
...
@@ -5,11 +5,12 @@ import useResponsiveWidth from "@/hooks/useResponsiveWidth";
...
@@ -5,11 +5,12 @@ import useResponsiveWidth from "@/hooks/useResponsiveWidth";
import
NavigationDrawer
from
"./NavigationDrawer"
;
import
NavigationDrawer
from
"./NavigationDrawer"
;
interface
Props
{
interface
Props
{
className
?:
string
;
children
?:
React
.
ReactNode
;
children
?:
React
.
ReactNode
;
}
}
const
MobileHeader
=
(
props
:
Props
)
=>
{
const
MobileHeader
=
(
props
:
Props
)
=>
{
const
{
children
}
=
props
;
const
{
c
lassName
,
c
hildren
}
=
props
;
const
{
sm
}
=
useResponsiveWidth
();
const
{
sm
}
=
useResponsiveWidth
();
const
[
titleText
]
=
useState
(
"Memos"
);
const
[
titleText
]
=
useState
(
"Memos"
);
const
{
y
:
offsetTop
}
=
useWindowScroll
();
const
{
y
:
offsetTop
}
=
useWindowScroll
();
...
@@ -18,7 +19,8 @@ const MobileHeader = (props: Props) => {
...
@@ -18,7 +19,8 @@ const MobileHeader = (props: Props) => {
<
div
<
div
className=
{
classNames
(
className=
{
classNames
(
"sticky top-0 pt-3 pb-2 sm:pt-2 px-4 sm:px-6 sm:mb-1 bg-zinc-100 dark:bg-zinc-900 bg-opacity-80 backdrop-blur-lg flex md:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-1"
,
"sticky top-0 pt-3 pb-2 sm:pt-2 px-4 sm:px-6 sm:mb-1 bg-zinc-100 dark:bg-zinc-900 bg-opacity-80 backdrop-blur-lg flex md:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-1"
,
offsetTop
>
0
&&
"shadow-md"
offsetTop
>
0
&&
"shadow-md"
,
className
)
}
)
}
>
>
<
div
className=
"flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden"
>
<
div
className=
"flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden"
>
...
...
web/src/pages/Home.tsx
View file @
6320d042
...
@@ -61,10 +61,10 @@ const Home = () => {
...
@@ -61,10 +61,10 @@ const Home = () => {
};
};
return
(
return
(
<
div
className=
"w-full max-w-5xl
flex flex-row justify-center items-start
"
>
<
div
className=
"w-full max-w-5xl
sm:px-6 flex flex-row justify-center items-start sm:gap-6
"
>
<
div
className=
{
classNames
(
"w-full sm:pt-3 md:pt-6"
,
md
&&
"max-w-[calc(100%-14rem)]"
)
}
>
<
div
className=
{
classNames
(
"w-full sm:pt-3 md:pt-6"
,
md
&&
"max-w-[calc(100%-14rem)]"
)
}
>
<
MobileHeader
>
{
!
md
&&
<
HomeSidebarDrawer
/>
}
</
MobileHeader
>
<
MobileHeader
className=
"sm:px-0"
>
{
!
md
&&
<
HomeSidebarDrawer
/>
}
</
MobileHeader
>
<
div
className=
"w-full px-4 sm:px-
6 md:pr-2
"
>
<
div
className=
"w-full px-4 sm:px-
0
"
>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
<
div
className=
"flex flex-col justify-start items-start w-full max-w-full pb-28"
>
<
div
className=
"flex flex-col justify-start items-start w-full max-w-full pb-28"
>
<
MemoFilter
/>
<
MemoFilter
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment