Skip to content

Commit 70cd465

Browse files
feat(Classic Footer): Allow userstyles to customize note count (#1919)
1 parent dbeabbc commit 70cd465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/classic_footer/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ const processPosts = (postElements) => filterPostElements(postElements).forEach(
8484

8585
const { noteCount } = await timelineObject(postElement);
8686
const noteCountButton = dom('button', { class: noteCountClass }, { click: onNoteCountClick }, [
87-
`${noteCountFormat.format(noteCount)} ${noteCount === 1 ? 'note' : 'notes'}`
87+
dom('span', null, null, [noteCountFormat.format(noteCount)]),
88+
` ${noteCount === 1 ? 'note' : 'notes'}`
8889
]);
8990

9091
const engagementControls = postElement.querySelector(engagementControlsSelector);

0 commit comments

Comments
 (0)