Refactor style (among other things) #24

Merged
Tetrakern merged 94 commits from refactor_colors into main 2024-03-03 02:47:35 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 90b99301ff - Show all commits

2
js/bookmarks.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -467,7 +467,7 @@ function fcn_setMobileMenuBookmarks() {
const fragment = document.createDocumentFragment();
// Append bookmarks to fragment
bookmarks.forEach(([id, { color, progress, link, chapter, paragraphId }]) => {
bookmarks.forEach(([id, { color, progress, link, chapter, 'paragraph-id': paragraphId }]) => {
const clone = template.content.cloneNode(true);
const bookmarkElement = clone.querySelector('.mobile-menu__bookmark');
@ -540,7 +540,7 @@ function fcn_showBookmarkCards() {
// Append bookmarks to fragment (if any)
Object.entries(
fcn_bookmarks.data).forEach(([id, { color, progress, link, chapter, paragraphId, date, image, thumb, content }]
fcn_bookmarks.data).forEach(([id, { color, progress, link, chapter, 'paragraph-id': paragraphId, date, image, thumb, content }]
) => {
// Limit rendered bookmarks
if (count > -1 && count-- < 1) {