Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update `html2image`
boojack6c5bea9caf6c
diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsxindex 38afab77a..d638b0668 100644--- a/web/src/components/SearchBar.tsx+++ b/web/src/components/SearchBar.tsx@@ -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">diff --git a/web/src/components/ShareMemoImageDialog.tsx b/web/src/components/ShareMemoImageDialog.tsxindex 8ae8d3f46..715c1f855 100644--- a/web/src/components/ShareMemoImageDialog.tsx+++ b/web/src/components/ShareMemoImageDialog.tsx@@ -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 !== ""}>diff --git a/web/src/labs/html2image/index.ts b/web/src/labs/html2image/index.tsindex c32f46449..4ec677020 100644--- a/web/src/labs/html2image/index.ts+++ b/web/src/labs/html2image/index.ts@@ -89,7 +89,7 @@ export const toCanvas = async (element: HTMLElement, options?: Options): Promiseconst 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);diff --git a/web/src/less/shortcut-list.less b/web/src/less/shortcut-list.lessindex a107b3584..2fca8cc41 100644--- a/web/src/less/shortcut-list.less+++ b/web/src/less/shortcut-list.less@@ -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;