evade ublock for share button

This commit is contained in:
emilis 2026-01-03 13:03:00 +00:00
parent 8291f36660
commit 2d6b23522a
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -757,6 +757,9 @@ dialog:has(.notification) {
border: none; border: none;
} }
.share-button { // can't call it share-button since
// that triggers uBlock to block it
// lol
.legal-share-button {
font-size: 1.5em; font-size: 1.5em;
} }

View File

@ -335,7 +335,7 @@ pub fn PlanPage(PlanPageProps { id }: &PlanPageProps) -> Html {
}; };
html! { html! {
<> <>
<button onclick={share_cb} class="share-button">{"share"}</button> <button onclick={share_cb} class="legal-share-button">{"share"}</button>
<dialog id={SHARE_SUCCESS_ID}> <dialog id={SHARE_SUCCESS_ID}>
<div class="notification"> <div class="notification">
<p>{"link copied to clipboard"}</p> <p>{"link copied to clipboard"}</p>