Ensure elements cant be dragged

This commit is contained in:
2025-07-17 18:58:47 -07:00
parent 11b7322172
commit 3f67a1a04d
2 changed files with 7 additions and 3 deletions

View File

@@ -9,3 +9,7 @@ body {
color: white; color: white;
user-select: none; user-select: none;
} }
img {
pointer-events: none;
}

View File

@@ -57,9 +57,9 @@ const Sidebar = () => {
/> />
</div> </div>
<nav className="nav-links"> <nav className="nav-links">
<a href="#installs" className={`link ${(window.location.hash || '#installs') === '#installs' ? 'active' : ''}`}><FontAwesomeIcon icon={faServer} className="mr-2" /> Installs</a> <a draggable={false} href="#installs" className={`link ${(window.location.hash || '#installs') === '#installs' ? 'active' : ''}`}><FontAwesomeIcon icon={faServer} className="mr-2" /> Installs</a>
<a href="#settings" className={`link ${(window.location.hash || '#installs') === '#settings' ? 'active' : ''}`}><FontAwesomeIcon icon={faCog} className="mr-2" /> Settings</a> <a draggable={false} href="#settings" className={`link ${(window.location.hash || '#installs') === '#settings' ? 'active' : ''}`}><FontAwesomeIcon icon={faCog} className="mr-2" /> Settings</a>
<a onClick={() => openUrl("https://berrydash.lncvrt.xyz/discord")} className="link"><FontAwesomeIcon icon={faDiscord} className="mr-2" /> Support</a> <a draggable={false} onClick={() => openUrl("https://berrydash.lncvrt.xyz/discord")} className="link"><FontAwesomeIcon icon={faDiscord} className="mr-2" /> Support</a>
</nav> </nav>
</aside> </aside>
) )