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
735cfda7
Unverified
Commit
735cfda7
authored
Aug 18, 2023
by
Maciej Kasprzyk
Committed by
GitHub
Aug 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: tag suggestions positioning (#2151)
parent
3f82729e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
TagSuggestions.tsx
web/src/components/MemoEditor/Editor/TagSuggestions.tsx
+2
-2
memo-editor.less
web/src/less/memo-editor.less
+10
-0
No files found.
web/src/components/MemoEditor/Editor/TagSuggestions.tsx
View file @
735cfda7
...
@@ -94,8 +94,8 @@ const TagSuggestions = ({ editorRef, editorActions }: Props) => {
...
@@ -94,8 +94,8 @@ const TagSuggestions = ({ editorRef, editorActions }: Props) => {
if
(
!
isVisibleRef
.
current
||
!
position
)
return
null
;
if
(
!
isVisibleRef
.
current
||
!
position
)
return
null
;
return
(
return
(
<
div
<
div
className=
"
z-2
p-1 absolute max-w-[12rem] rounded font-mono shadow bg-zinc-200 dark:bg-zinc-600"
className=
"
tag-suggestions z-20
p-1 absolute max-w-[12rem] rounded font-mono shadow bg-zinc-200 dark:bg-zinc-600"
style=
{
{
left
:
position
.
left
-
6
,
top
:
position
.
top
+
position
.
height
+
2
}
}
style=
{
{
left
:
position
.
left
,
top
:
position
.
top
+
position
.
height
}
}
>
>
{
suggestionsRef
.
current
.
map
((
tag
,
i
)
=>
(
{
suggestionsRef
.
current
.
map
((
tag
,
i
)
=>
(
<
div
<
div
...
...
web/src/less/memo-editor.less
View file @
735cfda7
...
@@ -12,6 +12,11 @@
...
@@ -12,6 +12,11 @@
}
}
}
}
.tag-suggestions {
margin-left: 6px;
margin-top: 18px;
}
.tag-action > .tag-list {
.tag-action > .tag-list {
@apply bottom-7;
@apply bottom-7;
top: unset !important;
top: unset !important;
...
@@ -22,6 +27,11 @@
...
@@ -22,6 +27,11 @@
}
}
}
}
.tag-suggestions {
margin-left: -10px;
margin-top: 2px;
}
> .memo-editor {
> .memo-editor {
@apply mt-4 flex flex-col justify-start items-start relative w-full h-auto bg-inherit dark:text-gray-200;
@apply mt-4 flex flex-col justify-start items-start relative w-full h-auto bg-inherit dark:text-gray-200;
}
}
...
...
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