Fix View Channel button functionality and styling in EventDetailsModal

This commit is contained in:
google-labs-jules[bot] committed 2026-01-14 20:42:36 +00:00
1 parent f1d74894f2
commit 6794a54fba
2 files changed
+7 -2

No files matched your search

+4 -1
View File
@@ -629,7 +629,10 @@ export default class ModalManager {
callbacks: {
showError: (msg) => app.showError(msg),
showSuccess: (msg) => app.showSuccess(msg),
openCreatorChannel: (pubkey) => app.goToProfile(pubkey),
openCreatorChannel: (pubkey) => {
app.hideModal();
app.goToProfile(pubkey);
},
},
});
app.eventDetailsModal = this.eventDetailsModal;
+3 -1
View File
@@ -1,4 +1,5 @@
import { prepareStaticModal, openStaticModal, closeStaticModal } from "./staticModalAccessibility.js";
import { sanitizeProfileMediaUrl } from "../../utils/profileMedia.js";
const DEFAULT_PROFILE_AVATAR = "assets/svg/default-profile.svg";
@@ -277,7 +278,8 @@ export class EventDetailsModal {
}
if (authorPicEl) {
const pic = video.authorPicture || video.profile?.picture || DEFAULT_PROFILE_AVATAR;
const picCandidate = video.authorPicture || video.profile?.picture || "";
const pic = sanitizeProfileMediaUrl(picCandidate) || DEFAULT_PROFILE_AVATAR;
authorPicEl.src = pic;
}