Add new features and optimize the style
Added
- Comment Replies: Implemented a comment reply feature. Users can now reply to specific messages, with a link that scrolls to the original message.
- Authenticated Media: Added support for fetching media from private Matrix rooms for authenticated users.
- Internationalization (i18n): Introduced multilingual support, allowing the UI language to be configured. Shipped with English and Chinese translations.
-
Read-Only Mode: Added a
commentEnabled
configuration option to disable commenting, providing a read-only view of the comment section.
Changed
-
Performance: Overhauled media caching by replacing the
localStorage
system with a more robust IndexedDB implementation, significantly reducing redundant downloads and improving load times. - Performance: Eliminated comment section flickering during updates (e.g., loading more comments, posting) by using keyed rendering. This preserves the playback state of embedded media.
-
UI: Improved the reply functionality with rich-text hover previews, SVG icons, message highlighting on scroll, and better
<blockquote>
styling.
Fixed
- "View More" Spam: Prevented duplicate comments from being loaded by disabling the "View more" button during both initial and subsequent comment fetches.
- Reply Tooltips: Fixed issues where reply tooltips would overlap with the browser's native title attribute and would not disappear correctly on mobile devices.
-
Layout & Styling: Resolved various CSS issues, including:
- Code blocks and audio players overflowing their containers.
- Incorrect wrapping for inline code.
- Poorly rendered tooltips in dark mode.
- Incorrect icon sizes and whitespace in the reply editor.