chore: update html2image
This commit is contained in:
parent
93ba2f4fab
commit
6c5bea9caf
4 changed files with 3 additions and 15 deletions
|
|
@ -24,7 +24,7 @@ const SearchBar: React.FC<Props> = () => {
|
||||||
return (
|
return (
|
||||||
<div className="search-bar-container">
|
<div className="search-bar-container">
|
||||||
<div className="search-bar-inputer">
|
<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} />
|
<input className="text-input" type="text" placeholder="" onChange={handleTextQueryInput} />
|
||||||
</div>
|
</div>
|
||||||
<div className="quickly-action-wrapper">
|
<div className="quickly-action-wrapper">
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ const ShareMemoImageDialog: React.FC<Props> = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
<div className="dialog-content-container">
|
<div className="dialog-content-container">
|
||||||
<div className={`tip-words-container ${shortcutImgUrl ? "finish" : "loading"}`}>
|
<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>
|
||||||
<div className="memo-container" ref={memoElRef}>
|
<div className="memo-container" ref={memoElRef}>
|
||||||
<Only when={shortcutImgUrl !== ""}>
|
<Only when={shortcutImgUrl !== ""}>
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ export const toCanvas = async (element: HTMLElement, options?: Options): Promise
|
||||||
const url = await toSVG(element, options);
|
const url = await toSVG(element, options);
|
||||||
const imageEl = new Image();
|
const imageEl = new Image();
|
||||||
imageEl.style.zIndex = "-1";
|
imageEl.style.zIndex = "-1";
|
||||||
imageEl.style.position = "absolute";
|
imageEl.style.position = "fixed";
|
||||||
imageEl.style.top = "0";
|
imageEl.style.top = "0";
|
||||||
document.body.append(imageEl);
|
document.body.append(imageEl);
|
||||||
await waitImageLoaded(imageEl, url);
|
await waitImageLoaded(imageEl, url);
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
> .shortcuts-container {
|
||||||
@apply flex flex-col justify-start items-start relative w-full h-auto flex-nowrap mb-2;
|
@apply flex flex-col justify-start items-start relative w-full h-auto flex-nowrap mb-2;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue