Fix View Channel button functionality and styling in EventDetailsModal

This commit is contained in:
google-labs-jules[bot] committed 2026-01-14 20:28:26 +00:00
1 parent 1c7daff733
commit f1d74894f2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -629,7 +629,7 @@ export default class ModalManager {
callbacks: {
showError: (msg) => app.showError(msg),
showSuccess: (msg) => app.showSuccess(msg),
openCreatorChannel: (pubkey) => app.openCreatorChannel(pubkey),
openCreatorChannel: (pubkey) => app.goToProfile(pubkey),
},
});
app.eventDetailsModal = this.eventDetailsModal;
+1 -1
View File
@@ -57,7 +57,7 @@ export class EventDetailsModal {
<div class="flex-1 min-w-0">
<div class="flex items-center gap-2">
<span data-author-name class="font-medium text-text truncate">Unknown</span>
<button type="button" data-action="open-channel" class="text-xs text-accent hover:underline">View Channel</button>
<button type="button" data-action="open-channel" class="text-xs text-critical hover:underline">View Channel</button>
</div>
<div class="flex items-center gap-2 mt-1">
<code data-author-npub class="text-xs text-muted truncate bg-panel/50 px-1.5 py-0.5 rounded max-w-[200px]"></code>