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.

@malangadan malangadan closed this Apr 8, 2025
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.

2 participants