Skip to content

Commit

Permalink
Hide sidebar links on desktop
Browse files Browse the repository at this point in the history
Fixes #210
  • Loading branch information
xPaw committed Jan 8, 2025
1 parent 1fa9305 commit 443d1c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/store/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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' );
Expand Down
8 changes: 8 additions & 0 deletions styles/store.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 443d1c0

Please sign in to comment.