chore: update `html2image`

pull/124/head
boojack 3 years ago
parent 93ba2f4fab
commit 6c5bea9caf

@ -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">

@ -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 !== ""}>

@ -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);

@ -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;

Loading…
Cancel
Save