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
20e55971
Commit
20e55971
authored
Oct 13, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix memo container max width
parent
ed2e2997
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
9 deletions
+17
-9
HomeSidebar.tsx
web/src/components/HomeSidebar.tsx
+3
-3
MobileHeader.tsx
web/src/components/MobileHeader.tsx
+1
-1
BlockLatex.tsx
web/src/labs/marked/parser/BlockLatex.tsx
+5
-1
InlineLatex.tsx
web/src/labs/marked/parser/InlineLatex.tsx
+5
-1
Archived.tsx
web/src/pages/Archived.tsx
+1
-1
Home.tsx
web/src/pages/Home.tsx
+1
-1
Setting.tsx
web/src/pages/Setting.tsx
+1
-1
No files found.
web/src/components/HomeSidebar.tsx
View file @
20e55971
...
...
@@ -9,18 +9,18 @@ const HomeSidebar = () => {
return
(
<
div
className=
{
`fixed
md:sticky top-0 left-0 w-full md:w-56 h-full shrink-0 pointer-events-none md
:pointer-events-auto z-10 ${
className=
{
`fixed
lg:sticky top-0 left-0 w-full lg:w-56 h-full shrink-0 pointer-events-none lg
:pointer-events-auto z-10 ${
showHomeSidebar && "pointer-events-auto"
}`
}
>
<
div
className=
{
`fixed top-0 left-0 w-full h-full bg-black opacity-0 pointer-events-none transition-opacity duration-300
md
:!hidden ${
className=
{
`fixed top-0 left-0 w-full h-full bg-black opacity-0 pointer-events-none transition-opacity duration-300
lg
:!hidden ${
showHomeSidebar && "opacity-60 pointer-events-auto"
}`
}
onClick=
{
()
=>
layoutStore
.
setHomeSidebarStatus
(
false
)
}
></
div
>
<
aside
className=
{
`absolute
md:relative top-0 right-0 w-56 pr-2 md:w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 z-30 bg-zinc-100 dark:bg-zinc-800 md:bg-transparent md:shadow-none transition-all duration-300 translate-x-full md
:translate-x-0 ${
className=
{
`absolute
lg:relative top-0 right-0 w-56 pr-2 lg:w-full h-full max-h-screen overflow-auto hide-scrollbar flex flex-col justify-start items-start py-4 z-30 bg-zinc-100 dark:bg-zinc-800 lg:bg-transparent lg:shadow-none transition-all duration-300 translate-x-full lg
:translate-x-0 ${
showHomeSidebar && "!translate-x-0 shadow-2xl"
}`
}
>
...
...
web/src/components/MobileHeader.tsx
View file @
20e55971
...
...
@@ -12,7 +12,7 @@ const MobileHeader = (props: Props) => {
const
[
titleText
]
=
useState
(
"MEMOS"
);
return
(
<
div
className=
"sticky top-0 pt-4 sm:pt-1 pb-1 mb-1 backdrop-blur bg-zinc-100 dark:bg-zinc-800 bg-opacity-70 flex
md
:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-2"
>
<
div
className=
"sticky top-0 pt-4 sm:pt-1 pb-1 mb-1 backdrop-blur bg-zinc-100 dark:bg-zinc-800 bg-opacity-70 flex
lg
:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-2"
>
<
div
className=
"flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden"
>
<
div
className=
"flex sm:hidden flex-row justify-center items-center w-6 h-6 mr-1 shrink-0 bg-transparent"
...
...
web/src/labs/marked/parser/BlockLatex.tsx
View file @
20e55971
...
...
@@ -25,7 +25,11 @@ const blockRenderer = (rawStr: string) => {
latexCode
=
matchResult
[
3
];
}
return
<
TeX
block=
{
true
}
>
{
latexCode
}
</
TeX
>;
return
(
<
div
className=
"w-full max-w-full overflow-x-auto"
>
<
TeX
block=
{
true
}
>
{
latexCode
}
</
TeX
>
</
div
>
);
};
export
default
{
...
...
web/src/labs/marked/parser/InlineLatex.tsx
View file @
20e55971
...
...
@@ -12,7 +12,11 @@ const inlineRenderer = (rawStr: string) => {
}
else
if
(
matchResult
[
2
])
{
latexCode
=
matchResult
[
2
];
}
return
<
TeX
key=
{
latexCode
}
>
{
latexCode
}
</
TeX
>;
return
(
<
div
className=
"w-full max-w-full overflow-x-auto"
>
<
TeX
key=
{
latexCode
}
>
{
latexCode
}
</
TeX
>
</
div
>
);
}
return
rawStr
;
};
...
...
web/src/pages/Archived.tsx
View file @
20e55971
...
...
@@ -36,7 +36,7 @@ const Archived = () => {
},
[
memos
,
textQuery
]);
return
(
<
section
className=
"w-full max-w-3xl min-h-full flex flex-col
md:flex-row
justify-start items-start px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
section
className=
"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
}
/>
<
div
className=
"archived-memo-page"
>
<
MemoFilter
/>
...
...
web/src/pages/Home.tsx
View file @
20e55971
...
...
@@ -7,7 +7,7 @@ import MobileHeader from "@/components/MobileHeader";
const
Home
=
()
=>
{
return
(
<
div
className=
"w-full flex flex-row justify-start items-start"
>
<
div
className=
"
flex-grow shrink w-auto px-4
sm:px-2 sm:pt-4"
>
<
div
className=
"
grow shrink w-auto max-w-full px-4 lg:max-w-[calc(100%-14rem)]
sm:px-2 sm:pt-4"
>
<
MobileHeader
/>
<
div
className=
"w-full h-auto flex flex-col justify-start items-start bg-zinc-100 dark:bg-zinc-800 rounded-lg"
>
<
MemoEditor
className=
"mb-2"
cacheKey=
"home-memo-editor"
/>
...
...
web/src/pages/Setting.tsx
View file @
20e55971
...
...
@@ -43,7 +43,7 @@ const Setting = () => {
};
return
(
<
section
className=
"w-full max-w-3xl min-h-full flex flex-col
md:flex-row
justify-start items-start px-4 sm:px-2 sm:pt-4 pb-8 bg-zinc-100 dark:bg-zinc-800"
>
<
section
className=
"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
}
/>
<
div
className=
"setting-page-wrapper"
>
<
div
className=
"section-selector-container"
>
...
...
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