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
dca90fb5
Commit
dca90fb5
authored
Nov 09, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update header
parent
172e2701
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
11 deletions
+9
-11
MobileHeader.tsx
web/src/components/MobileHeader.tsx
+2
-4
Archived.tsx
web/src/pages/Archived.tsx
+1
-1
DailyReview.tsx
web/src/pages/DailyReview.tsx
+1
-1
Explore.tsx
web/src/pages/Explore.tsx
+1
-1
Home.tsx
web/src/pages/Home.tsx
+1
-1
Inboxes.tsx
web/src/pages/Inboxes.tsx
+1
-1
Resources.tsx
web/src/pages/Resources.tsx
+1
-1
Setting.tsx
web/src/pages/Setting.tsx
+1
-1
No files found.
web/src/components/MobileHeader.tsx
View file @
dca90fb5
...
...
@@ -7,7 +7,7 @@ interface Props {
}
const
MobileHeader
=
(
props
:
Props
)
=>
{
const
{
showSearch
=
true
}
=
props
;
const
{
showSearch
}
=
props
;
const
[
titleText
]
=
useState
(
"MEMOS"
);
return
(
...
...
@@ -21,9 +21,7 @@ const MobileHeader = (props: Props) => {
{
titleText
}
</
span
>
</
div
>
<
div
className=
{
`${showSearch ? "flex" : "hidden"} flex-row justify-end items-center pr-1`
}
>
<
HomeSidebarDrawer
/>
</
div
>
<
div
className=
{
`flex flex-row justify-end items-center pr-1`
}
>
{
showSearch
&&
<
HomeSidebarDrawer
/>
}
</
div
>
</
div
>
);
};
...
...
web/src/pages/Archived.tsx
View file @
dca90fb5
...
...
@@ -36,7 +36,7 @@ const Archived = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-start px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
MemoFilter
/>
{
loadingState
.
isLoading
?
(
<
div
className=
"w-full h-32 flex flex-col justify-center items-center"
>
...
...
web/src/pages/DailyReview.tsx
View file @
dca90fb5
...
...
@@ -65,7 +65,7 @@ const DailyReview = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-center px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
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"
>
<
p
...
...
web/src/pages/Explore.tsx
View file @
dca90fb5
...
...
@@ -75,7 +75,7 @@ const Explore = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-center px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
div
className=
"relative w-full h-auto flex flex-col justify-start items-start"
>
<
MemoFilter
/>
{
sortedMemos
.
map
((
memo
)
=>
(
...
...
web/src/pages/Home.tsx
View file @
dca90fb5
...
...
@@ -7,7 +7,7 @@ const Home = () => {
return
(
<
div
className=
"w-full flex flex-row justify-start items-start"
>
<
div
className=
"w-full px-4 md:max-w-[calc(100%-14rem)] sm:px-2 sm:pt-4"
>
<
MobileHeader
/>
<
MobileHeader
showSearch=
{
true
}
/>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
<
MemoList
/>
</
div
>
...
...
web/src/pages/Inboxes.tsx
View file @
dca90fb5
...
...
@@ -21,7 +21,7 @@ const Inboxes = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-center px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
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"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
...
...
web/src/pages/Resources.tsx
View file @
dca90fb5
...
...
@@ -63,7 +63,7 @@ const Resources = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-center px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
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"
>
<
p
className=
"px-2 py-1 flex flex-row justify-start items-center select-none opacity-80"
>
...
...
web/src/pages/Setting.tsx
View file @
dca90fb5
...
...
@@ -44,7 +44,7 @@ const Setting = () => {
return
(
<
section
className=
"@container w-full max-w-3xl min-h-full flex flex-col justify-start items-start px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
MobileHeader
showSearch=
{
false
}
/>
<
MobileHeader
/>
<
div
className=
"setting-page-wrapper"
>
<
div
className=
"section-selector-container"
>
<
span
className=
"section-title"
>
{
t
(
"common.basic"
)
}
</
span
>
...
...
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