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
bbd5fe4e
Unverified
Commit
bbd5fe4e
authored
Dec 16, 2022
by
boojack
Committed by
GitHub
Dec 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove sticky style for memo editor (#752)
parent
575a0610
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
17 deletions
+8
-17
MemoFilter.tsx
web/src/components/MemoFilter.tsx
+1
-1
MemosHeader.tsx
web/src/components/MemosHeader.tsx
+1
-1
home.less
web/src/less/home.less
+1
-1
memo-filter.less
web/src/less/memo-filter.less
+1
-5
memo-list.less
web/src/less/memo-list.less
+1
-5
memos-header.less
web/src/less/memos-header.less
+1
-2
search-bar.less
web/src/less/search-bar.less
+1
-1
Home.tsx
web/src/pages/Home.tsx
+1
-1
No files found.
web/src/components/MemoFilter.tsx
View file @
bbd5fe4e
...
...
@@ -16,7 +16,7 @@ const MemoFilter = () => {
return
(
<
div
className=
{
`filter-query-container ${showFilter ? "" : "!hidden"}`
}
>
<
span
className=
"
tip-text
"
>
{
t
(
"common.filter"
)
}
:
</
span
>
<
span
className=
"
mx-2 text-gray-400
"
>
{
t
(
"common.filter"
)
}
:
</
span
>
<
div
className=
{
"filter-item-container "
+
(
shortcut
?
""
:
"!hidden"
)
}
onClick=
{
()
=>
{
...
...
web/src/components/MemosHeader.tsx
View file @
bbd5fe4e
...
...
@@ -36,7 +36,7 @@ const MemosHeader = () => {
},
[]);
return
(
<
div
className=
"
section-header-container
memos-header-container"
>
<
div
className=
"memos-header-container"
>
<
div
className=
"title-container"
>
<
div
className=
"action-btn"
onClick=
{
()
=>
toggleSidebar
(
true
)
}
>
<
Icon
.
Menu
className=
"icon-img"
/>
...
...
web/src/less/home.less
View file @
bbd5fe4e
...
...
@@ -16,7 +16,7 @@
@apply relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4 sm:pr-6;
> .memos-editor-wrapper {
@apply
sticky top-0 w-full h-full flex flex-col justify-start items-start z-10
bg-zinc-100 dark:bg-zinc-800;
@apply
w-full h-auto flex flex-col justify-start items-start
bg-zinc-100 dark:bg-zinc-800;
}
> .addition-btn-container {
...
...
web/src/less/memo-filter.less
View file @
bbd5fe4e
.filter-query-container {
@apply flex flex-row justify-start items-start w-full flex-wrap p-2 pb-1 text-sm font-mono leading-7 dark:text-gray-300;
> .tip-text {
@apply mr-2;
}
@apply flex flex-row justify-start items-start w-full flex-wrap px-2 pt-2 text-sm font-mono leading-7 dark:text-gray-300;
> .filter-item-container {
@apply flex flex-row justify-start items-center px-2 mr-2 cursor-pointer dark:text-gray-300 bg-gray-200 dark:bg-zinc-700 rounded whitespace-nowrap truncate hover:line-through;
...
...
web/src/less/memo-list.less
View file @
bbd5fe4e
.memo-list-container {
@apply flex flex-col justify-start items-start w-full max-w-full overflow-y-scroll
!pb-36
hide-scrollbar;
@apply flex flex-col justify-start items-start w-full max-w-full overflow-y-scroll hide-scrollbar;
> .status-text-container {
@apply flex flex-col justify-start items-center w-full my-6;
...
...
@@ -12,8 +12,4 @@
@apply text-sm text-gray-400 italic;
}
}
&.completed {
@apply pb-16;
}
}
web/src/less/memos-header.less
View file @
bbd5fe4e
.section-header-container,
.memos-header-container {
@apply sticky top-
4 flex flex-row justify-between items-center w-full h-10 flex-nowrap mt-4 mb-2
shrink-0 z-10;
@apply sticky top-
0 pt-4 pb-1 mb-1 backdrop-blur-sm flex flex-row justify-between items-center w-full h-auto flex-nowrap
shrink-0 z-10;
> .title-container {
@apply flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden;
...
...
web/src/less/search-bar.less
View file @
bbd5fe4e
...
...
@@ -25,7 +25,7 @@
> .quickly-action-container {
@apply flex flex-col justify-start items-start w-full bg-white dark:bg-zinc-700 px-4 py-3 rounded-lg;
box-shadow: 0 0
8px 0 rgb(0 0 0 / 4
0%);
box-shadow: 0 0
4px 0 rgb(0 0 0 / 2
0%);
> .title-text {
@apply text-gray-600 dark:text-gray-400 text-xs;
...
...
web/src/pages/Home.tsx
View file @
bbd5fe4e
...
...
@@ -41,8 +41,8 @@ function Home() {
<
div
className=
"page-container"
>
<
Sidebar
/>
<
main
className=
"memos-wrapper"
>
<
div
className=
"memos-editor-wrapper"
>
<
MemosHeader
/>
<
div
className=
"memos-editor-wrapper"
>
{
!
userService
.
isVisitorMode
()
&&
<
MemoEditor
/>
}
<
MemoFilter
/>
</
div
>
...
...
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