Skip to content

Commit 443d1c0

Browse files
committed
Hide sidebar links on desktop
Fixes #210
1 parent 1fa9305 commit 443d1c0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

scripts/store/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ else
8484
if( lastLinkBar )
8585
{
8686
const link = document.createElement( 'a' );
87-
link.className = 'linkbar';
87+
link.className = 'linkbar linkbar_steamdb';
8888
link.href = GetHomepage() + 'app/' + GetCurrentAppID() + '/';
8989

9090
const image = document.createElement( 'img' );
@@ -129,7 +129,7 @@ else
129129
if( lastLinkBar )
130130
{
131131
const link = document.createElement( 'a' );
132-
link.className = 'linkbar';
132+
link.className = 'linkbar linkbar_steamdb';
133133
link.href = 'https://pcgamingwiki.com/api/appid.php?appid=' + GetCurrentAppID() + '&utm_source=SteamDB';
134134

135135
const image = document.createElement( 'img' );

styles/store.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ html.responsive .game_area_purchase_game a.steamdb_link {
3939
left: 16px;
4040
}
4141

42+
.linkbar_steamdb {
43+
display: none !important;
44+
}
45+
4246
@media (max-width: 500px) {
4347
.game_purchase_sub_dropdown .steamdb_link {
4448
position: relative;
@@ -53,6 +57,10 @@ html.responsive .game_area_purchase_game a.steamdb_link {
5357
align-self: start;
5458
margin-right: auto;
5559
}
60+
61+
html.responsive .linkbar_steamdb {
62+
display: block !important;
63+
}
5664
}
5765

5866
#widget .steamdb_link {

0 commit comments

Comments
 (0)