mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 02:42:28 +00:00
Fix blurred thumbnail visuals and add moderation buttons to SimilarContentCard
- Adds `blur-xl` class to `SimilarContentCard` thumbnails when blurred, ensuring visual consistency. - Implements `createModerationOverrideButton`, `createModerationHideButton`, and `createModerationBlockButton` in `SimilarContentCard.js` to provide missing interactivity. - Updates `VideoModal.js` to wire up moderation callbacks (`onModerationOverride`, `onModerationHide`, `onModerationBlock`) when initializing similar content cards, dispatching global moderation events. - Ensures moderation actions in the similar content sidebar function identically to the main video player.
This commit is contained in:
1 parent
991c090fc4
commit
e6ebbb8343
4 files changed
+786
-19
No files matched your search
@@ -4947,6 +4947,22 @@ export class VideoModal {
|
||||
cardIndex
|
||||
);
|
||||
|
||||
// Wire up moderation callbacks
|
||||
if (card) {
|
||||
card.onModerationOverride = (detail) => {
|
||||
this.dispatch("video:moderation-override", detail);
|
||||
return true;
|
||||
};
|
||||
card.onModerationHide = (detail) => {
|
||||
this.dispatch("video:moderation-hide", detail);
|
||||
return true;
|
||||
};
|
||||
card.onModerationBlock = (detail) => {
|
||||
this.dispatch("video:moderation-block", detail);
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
const root = card.getRoot();
|
||||
if (!root) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user