Skip to content

Conversation

@malangadan
Copy link
Collaborator

Recents should load by access time since I changed
try { setRecentsData(await db.notes.readAll()) } to this try { setRecentsData(await db.notes.getRecents(cardCount)) }.

break-all overflow-ellipsis These tailwind classes have worked in my testing to prevent overflow. The overflow ellipsis adds a ... to the end if it overflows.

By adding this to the query for the getRecents function SUBSTR(content, 1, 65) it limits the amount of characters returned and has improved the speed when testing with 8 notes where the content is the Cuda test text you sent me.

If you see below I tested using window.href but it caused the recents menu to close when clicking on a note from it.

window.mp4

I tried recreating the issue with the old code: onClick={() => router.push(/note?id=${note.id}) } but the code was working fine I liked how it worked better.

shorterRouter.mp4

If the issue is still appearing I will fix it quickly. I will try and test recents during next meeting.

@zeim839 zeim839 linked an issue Apr 8, 2025 that may be closed by this pull request
Copy link
Owner

@zeim839 zeim839 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BEAUTIFUL

@zeim839 zeim839 merged commit f1811a6 into master Apr 8, 2025
4 checks passed
@zeim839 zeim839 deleted the recentsBugs branch April 8, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug Recents Menu

3 participants