From 443d1c084cc9883ef7c0bc9f99321b6fd948584f Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 8 Jan 2025 21:39:07 +0200 Subject: [PATCH] Hide sidebar links on desktop Fixes #210 --- scripts/store/app.js | 4 ++-- styles/store.css | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/store/app.js b/scripts/store/app.js index 63a7508b..99b5062e 100644 --- a/scripts/store/app.js +++ b/scripts/store/app.js @@ -84,7 +84,7 @@ else if( lastLinkBar ) { const link = document.createElement( 'a' ); - link.className = 'linkbar'; + link.className = 'linkbar linkbar_steamdb'; link.href = GetHomepage() + 'app/' + GetCurrentAppID() + '/'; const image = document.createElement( 'img' ); @@ -129,7 +129,7 @@ else if( lastLinkBar ) { const link = document.createElement( 'a' ); - link.className = 'linkbar'; + link.className = 'linkbar linkbar_steamdb'; link.href = 'https://pcgamingwiki.com/api/appid.php?appid=' + GetCurrentAppID() + '&utm_source=SteamDB'; const image = document.createElement( 'img' ); diff --git a/styles/store.css b/styles/store.css index 69b46dbc..af4bf05d 100644 --- a/styles/store.css +++ b/styles/store.css @@ -39,6 +39,10 @@ html.responsive .game_area_purchase_game a.steamdb_link { left: 16px; } +.linkbar_steamdb { + display: none !important; +} + @media (max-width: 500px) { .game_purchase_sub_dropdown .steamdb_link { position: relative; @@ -53,6 +57,10 @@ html.responsive .game_area_purchase_game a.steamdb_link { align-self: start; margin-right: auto; } + + html.responsive .linkbar_steamdb { + display: block !important; + } } #widget .steamdb_link {