Fix: Add target and rel attributes to external links for new tab opening

This commit is contained in:
dishit7.dev 2024-07-27 13:32:54 +05:30
parent 7cf64a4a2a
commit afdb6902e8

View file

@ -366,6 +366,8 @@ function ChatWindow({
href={source.source}
key={idx}
className="w-[350px] shrink-0 p-4 gap-2 rounded-2xl flex flex-col bg-secondary"
target="_blank"
rel="noopener noreferrer"
>
<div className="flex justify-between text-foreground-menu text-sm">
<span>{source.type}</span>