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
abc14217
Commit
abc14217
authored
Dec 19, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak padding styles
parent
af68cae6
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
21 additions
and
21 deletions
+21
-21
index.tsx
web/src/components/MemoEditor/index.tsx
+1
-1
MobileHeader.tsx
web/src/components/MobileHeader.tsx
+1
-1
Navigation.tsx
web/src/components/Navigation.tsx
+1
-1
Root.tsx
web/src/layouts/Root.tsx
+1
-1
Archived.tsx
web/src/pages/Archived.tsx
+2
-2
Explore.tsx
web/src/pages/Explore.tsx
+2
-2
Home.tsx
web/src/pages/Home.tsx
+1
-1
Inboxes.tsx
web/src/pages/Inboxes.tsx
+2
-2
MemoDetail.tsx
web/src/pages/MemoDetail.tsx
+2
-2
Resources.tsx
web/src/pages/Resources.tsx
+2
-2
Setting.tsx
web/src/pages/Setting.tsx
+2
-2
Timeline.tsx
web/src/pages/Timeline.tsx
+2
-2
UserProfile.tsx
web/src/pages/UserProfile.tsx
+2
-2
No files found.
web/src/components/MemoEditor/index.tsx
View file @
abc14217
...
@@ -424,7 +424,7 @@ const MemoEditor = (props: Props) => {
...
@@ -424,7 +424,7 @@ const MemoEditor = (props: Props) => {
onCompositionEnd=
{
()
=>
setIsInIME
(
false
)
}
onCompositionEnd=
{
()
=>
setIsInIME
(
false
)
}
>
>
<
Editor
ref=
{
editorRef
}
{
...
editorConfig
}
/>
<
Editor
ref=
{
editorRef
}
{
...
editorConfig
}
/>
<
div
className=
"relative w-full flex flex-row justify-between items-center pt-2
z-1
"
>
<
div
className=
"relative w-full flex flex-row justify-between items-center pt-2"
>
<
div
className=
"flex flex-row justify-start items-center"
>
<
div
className=
"flex flex-row justify-start items-center"
>
<
TagSelector
onTagSelectorClick=
{
(
tag
)
=>
handleTagSelectorClick
(
tag
)
}
/>
<
TagSelector
onTagSelectorClick=
{
(
tag
)
=>
handleTagSelectorClick
(
tag
)
}
/>
<
IconButton
<
IconButton
...
...
web/src/components/MobileHeader.tsx
View file @
abc14217
...
@@ -17,7 +17,7 @@ const MobileHeader = (props: Props) => {
...
@@ -17,7 +17,7 @@ const MobileHeader = (props: Props) => {
return
(
return
(
<
div
<
div
className=
{
classNames
(
className=
{
classNames
(
"sticky top-0 pt-
4 sm:pt-1 px-4 pb-1 mb-1 bg-zinc-100 dark:bg-zinc-800 bg-opacity-80 backdrop-blur-lg flex md:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-2
"
,
"sticky top-0 pt-
3 pb-2 sm:pt-2 px-4 sm:px-6 sm:mb-1 bg-zinc-100 dark:bg-zinc-800 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"
)
}
)
}
>
>
...
...
web/src/components/Navigation.tsx
View file @
abc14217
...
@@ -98,7 +98,7 @@ const Navigation = () => {
...
@@ -98,7 +98,7 @@ const Navigation = () => {
:
[
exploreNavLink
,
signInNavLink
];
:
[
exploreNavLink
,
signInNavLink
];
return
(
return
(
<
header
className=
"w-full h-full overflow-auto flex flex-col justify-start items-start py-4
sm
:pt-6 z-30"
>
<
header
className=
"w-full h-full overflow-auto flex flex-col justify-start items-start py-4
md
:pt-6 z-30"
>
<
UserBanner
/>
<
UserBanner
/>
<
div
className=
"w-full px-1 py-2 flex flex-col justify-start items-start shrink-0 space-y-2"
>
<
div
className=
"w-full px-1 py-2 flex flex-col justify-start items-start shrink-0 space-y-2"
>
{
navLinks
.
map
((
navLink
)
=>
(
{
navLinks
.
map
((
navLink
)
=>
(
...
...
web/src/layouts/Root.tsx
View file @
abc14217
...
@@ -9,7 +9,7 @@ function Root() {
...
@@ -9,7 +9,7 @@ function Root() {
<
div
className=
"w-full min-h-full"
>
<
div
className=
"w-full min-h-full"
>
<
div
className=
"w-full sm:pl-56 md:pl-64 mx-auto flex flex-row justify-center items-start"
>
<
div
className=
"w-full sm:pl-56 md:pl-64 mx-auto flex flex-row justify-center items-start"
>
{
sm
&&
(
{
sm
&&
(
<
div
className=
"hidden sm:block fixed top-0 left-0 w-56 md:w-64 px-4 border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-700 dark:bg-opacity-40 transition-all hover:shadow-xl"
>
<
div
className=
"hidden sm:block fixed top-0 left-0 w-56 md:w-64 px-4 border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-700 dark:bg-opacity-40 transition-all hover:shadow-xl
z-2
"
>
<
Navigation
/>
<
Navigation
/>
</
div
>
</
div
>
)
}
)
}
...
...
web/src/pages/Archived.tsx
View file @
abc14217
...
@@ -30,9 +30,9 @@ const Archived = () => {
...
@@ -30,9 +30,9 @@ const Archived = () => {
},
[
memos
]);
},
[
memos
]);
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-start sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-start sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
{
loadingState
.
isLoading
?
(
{
loadingState
.
isLoading
?
(
<
div
className=
"w-full h-32 flex flex-col justify-center items-center"
>
<
div
className=
"w-full h-32 flex flex-col justify-center items-center"
>
<
p
className=
"opacity-70"
>
{
t
(
"memo.fetching-data"
)
}
</
p
>
<
p
className=
"opacity-70"
>
{
t
(
"memo.fetching-data"
)
}
</
p
>
...
...
web/src/pages/Explore.tsx
View file @
abc14217
...
@@ -54,9 +54,9 @@ const Explore = () => {
...
@@ -54,9 +54,9 @@ const Explore = () => {
};
};
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"relative w-full h-auto flex flex-col justify-start items-start px-4"
>
<
div
className=
"relative w-full h-auto flex flex-col justify-start items-start px-4
sm:px-6
"
>
<
MemoFilter
/>
<
MemoFilter
/>
{
sortedMemos
.
map
((
memo
)
=>
(
{
sortedMemos
.
map
((
memo
)
=>
(
<
Memo
key=
{
memo
.
id
}
memo=
{
memo
}
lazyRendering
showCreator
showParent
/>
<
Memo
key=
{
memo
.
id
}
memo=
{
memo
}
lazyRendering
showCreator
showParent
/>
...
...
web/src/pages/Home.tsx
View file @
abc14217
...
@@ -10,7 +10,7 @@ const Home = () => {
...
@@ -10,7 +10,7 @@ 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 flex flex-row justify-center items-start"
>
<
div
className=
"w-full sm:pt-6"
>
<
div
className=
"w-full sm:pt-
3 md:pt-
6"
>
<
MobileHeader
>
{
!
md
&&
<
HomeSidebarDrawer
/>
}
</
MobileHeader
>
<
MobileHeader
>
{
!
md
&&
<
HomeSidebarDrawer
/>
}
</
MobileHeader
>
<
div
className=
"w-full px-4 sm:px-6 md:pr-2"
>
<
div
className=
"w-full px-4 sm:px-6 md:pr-2"
>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
...
...
web/src/pages/Inboxes.tsx
View file @
abc14217
...
@@ -20,9 +20,9 @@ const Inboxes = () => {
...
@@ -20,9 +20,9 @@ const Inboxes = () => {
},
[]);
},
[]);
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"relative w-full flex flex-row justify-between items-center"
>
<
div
className=
"relative w-full flex flex-row justify-between items-center"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
...
...
web/src/pages/MemoDetail.tsx
View file @
abc14217
...
@@ -110,9 +110,9 @@ const MemoDetail = () => {
...
@@ -110,9 +110,9 @@ const MemoDetail = () => {
};
};
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
<
div
className=
"relative flex-grow w-full min-h-full flex flex-col justify-start items-start border dark:border-zinc-700 bg-white dark:bg-zinc-700 shadow hover:shadow-xl transition-all p-4 pb-3 rounded-lg"
>
<
div
className=
"relative flex-grow w-full min-h-full flex flex-col justify-start items-start border dark:border-zinc-700 bg-white dark:bg-zinc-700 shadow hover:shadow-xl transition-all p-4 pb-3 rounded-lg"
>
{
memo
.
parent
&&
(
{
memo
.
parent
&&
(
<
div
className=
"w-auto mb-2"
>
<
div
className=
"w-auto mb-2"
>
...
...
web/src/pages/Resources.tsx
View file @
abc14217
...
@@ -66,9 +66,9 @@ const Resources = () => {
...
@@ -66,9 +66,9 @@ const Resources = () => {
};
};
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"relative w-full flex flex-row justify-between items-center"
>
<
div
className=
"relative w-full flex flex-row justify-between items-center"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
...
...
web/src/pages/Setting.tsx
View file @
abc14217
...
@@ -42,9 +42,9 @@ const Setting = () => {
...
@@ -42,9 +42,9 @@ const Setting = () => {
};
};
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-start sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-start sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
<
div
className=
"setting-page-wrapper"
>
<
div
className=
"setting-page-wrapper"
>
<
div
className=
"section-selector-container"
>
<
div
className=
"section-selector-container"
>
<
span
className=
"section-title"
>
{
t
(
"common.basic"
)
}
</
span
>
<
span
className=
"section-title"
>
{
t
(
"common.basic"
)
}
</
span
>
...
...
web/src/pages/Timeline.tsx
View file @
abc14217
...
@@ -64,9 +64,9 @@ const Timeline = () => {
...
@@ -64,9 +64,9 @@ const Timeline = () => {
};
};
return
(
return
(
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4"
>
<
div
className=
"w-full px-4
sm:px-6
"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-700 text-black dark:text-gray-300"
>
<
div
className=
"relative w-full flex flex-row justify-start items-center"
>
<
div
className=
"relative w-full flex flex-row justify-start items-center"
>
<
p
<
p
...
...
web/src/pages/UserProfile.tsx
View file @
abc14217
...
@@ -35,9 +35,9 @@ const UserProfile = () => {
...
@@ -35,9 +35,9 @@ const UserProfile = () => {
},
[
params
.
username
]);
},
[
params
.
username
]);
return
(
return
(
<
section
className=
"w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-6 pb-8"
>
<
section
className=
"w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-
3 md:pt-
6 pb-8"
>
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4 flex flex-col justify-start items-center"
>
<
div
className=
"w-full px-4
sm:px-6
flex flex-col justify-start items-center"
>
{
!
loadingState
.
isLoading
&&
{
!
loadingState
.
isLoading
&&
(
user
?
(
(
user
?
(
<>
<>
...
...
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