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
6c5bea9c
Commit
6c5bea9c
authored
Jul 17, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update `html2image`
parent
93ba2f4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
15 deletions
+3
-15
SearchBar.tsx
web/src/components/SearchBar.tsx
+1
-1
ShareMemoImageDialog.tsx
web/src/components/ShareMemoImageDialog.tsx
+1
-1
index.ts
web/src/labs/html2image/index.ts
+1
-1
shortcut-list.less
web/src/less/shortcut-list.less
+0
-12
No files found.
web/src/components/SearchBar.tsx
View file @
6c5bea9c
...
...
@@ -24,7 +24,7 @@ const SearchBar: React.FC<Props> = () => {
return
(
<
div
className=
"search-bar-container"
>
<
div
className=
"search-bar-inputer"
>
<
i
className=
"fa-solid fa-magnifying-glass icon-img"
></
i
>
<
i
className=
"fa-solid fa-magnifying-glass
fa-sm
icon-img"
></
i
>
<
input
className=
"text-input"
type=
"text"
placeholder=
""
onChange=
{
handleTextQueryInput
}
/>
</
div
>
<
div
className=
"quickly-action-wrapper"
>
...
...
web/src/components/ShareMemoImageDialog.tsx
View file @
6c5bea9c
...
...
@@ -80,7 +80,7 @@ const ShareMemoImageDialog: React.FC<Props> = (props: Props) => {
</
div
>
<
div
className=
"dialog-content-container"
>
<
div
className=
{
`tip-words-container ${shortcutImgUrl ? "finish" : "loading"}`
}
>
<
p
className=
"tip-text"
>
{
shortcutImgUrl
?
"Click
or press
to save the image 👇"
:
"Generating the screenshot..."
}
</
p
>
<
p
className=
"tip-text"
>
{
shortcutImgUrl
?
"Click to save the image 👇"
:
"Generating the screenshot..."
}
</
p
>
</
div
>
<
div
className=
"memo-container"
ref=
{
memoElRef
}
>
<
Only
when=
{
shortcutImgUrl
!==
""
}
>
...
...
web/src/labs/html2image/index.ts
View file @
6c5bea9c
...
...
@@ -89,7 +89,7 @@ export const toCanvas = async (element: HTMLElement, options?: Options): Promise
const
url
=
await
toSVG
(
element
,
options
);
const
imageEl
=
new
Image
();
imageEl
.
style
.
zIndex
=
"-1"
;
imageEl
.
style
.
position
=
"
absolute
"
;
imageEl
.
style
.
position
=
"
fixed
"
;
imageEl
.
style
.
top
=
"0"
;
document
.
body
.
append
(
imageEl
);
await
waitImageLoaded
(
imageEl
,
url
);
...
...
web/src/less/shortcut-list.less
View file @
6c5bea9c
...
...
@@ -20,18 +20,6 @@
}
}
> .create-shortcut-btn-container {
@apply flex flex-row justify-start items-center w-full mt-4 mb-2 ml-4;
> .btn {
@apply flex p-2 px-4 rounded-lg text-sm border border-dashed border-blue-600;
&:hover {
@apply bg-blue-600 text-white;
}
}
}
> .shortcuts-container {
@apply flex flex-col justify-start items-start relative w-full h-auto flex-nowrap mb-2;
...
...
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