Set a _blank target to the In Reply links. Fix hydrogen-sailfishos/sfos-hydrogen#14

Signed-off-by: Vlad G. <b100dian@gmail.com>
This commit is contained in:
Patrick Hervieux 2023-11-20 21:57:26 +02:00 committed by Vlad G.
parent 62332fe6a1
commit f21867d89c

View File

@ -31,8 +31,8 @@ export class ReplyPreviewView extends TemplateView {
return t.div( return t.div(
{ className: "ReplyPreviewView" }, { className: "ReplyPreviewView" },
t.blockquote([ t.blockquote([
t.a({ className: "link", href: vm.permaLink }, "In reply to"), t.a({ className: "link", target: "_blank", href: vm.permaLink }, "In reply to"),
t.a({ className: "pill", href: vm.senderProfileLink }, [ t.a({ className: "pill", target: "_blank", href: vm.senderProfileLink }, [
renderStaticAvatar(vm, 12, undefined, true), renderStaticAvatar(vm, 12, undefined, true),
vm.displayName, vm.displayName,
]), ]),