Use real links in the "Other" dropdown

The items were buttons calling window.open() without noopener, which
let the opened page access window.opener. Links also support
middle-click and show the URL on hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-10-30 21:50:23 +01:00
1 parent c997b74d01
commit d04afb3e0c
2 files changed
+10 -7

No files matched your search

+3 -2
View File
@@ -36,7 +36,8 @@
border-radius: 10px; border-radius: 10px;
} }
.dropdownButton { .dropdownLink {
display: block;
width: 100%; width: 100%;
color: black; color: black;
background-color: #cccccc; background-color: #cccccc;
@@ -52,7 +53,7 @@
padding-right: 2em; padding-right: 2em;
} }
.dropdownButton:hover { .dropdownLink:hover {
color: black; color: black;
background-color: #e6e6e6; background-color: #e6e6e6;
} }
+7 -5
View File
@@ -36,14 +36,16 @@ const OtherButton = () => {
{isOpen && ( {isOpen && (
<div className={styles.dropdown}> <div className={styles.dropdown}>
{links.map((link, index) => ( {links.map((link, index) => (
<button <a
key={index} key={link.url}
onClick={() => window.open(link.url, "_blank")} href={link.url}
className={styles.dropdownButton} target="_blank"
rel="noopener noreferrer"
className={styles.dropdownLink}
style={{ marginTop: index === 0 ? "8px" : "4px" }} style={{ marginTop: index === 0 ? "8px" : "4px" }}
> >
{link.label} {link.label}
</button> </a>
))} ))}
</div> </div>
)} )}