Preview detailed note via floating window || 通过悬浮窗预览笔记详情 #5982
rawlkian
started this conversation in
Show and tell
Replies: 1 comment
-
|
I've optimized the code. The memos list is now cached to avoid repeated data fetching during each preview. Data will only be re-fetched when it falls outside the cache range. Notes you browse are automatically added to the cache. Errors will rarely occur except when jumping directly without prior browsing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Other users have previously implemented this feature by forking the source code and rebuilding it.
Ref: https://github.com/orgs/usememos/discussions/4837
I tried replicating this feature with custom CSS styles and JavaScript scripts.
The specific principle is to use Memos' API to fetch the note list, match the corresponding ID based on the timestamp of the button that triggers the details, and then display the content in a floating window. Feel free to share your ideas if you have better approaches.
Add the following code to Custom CSS:
Add the following code to the custom JavaScript.
Here is the preview.

Beta Was this translation helpful? Give feedback.
All reactions