From ba4b64b6394c68a15179b20c9301a8bc9937f080 Mon Sep 17 00:00:00 2001 From: candela97 <54083835+candela97@users.noreply.github.com> Date: Sun, 25 Aug 2024 03:40:59 +0800 Subject: [PATCH 1/2] Fix order of SteamRepCN link --- .../ProfileHome/FCommunityProfileLinks.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/Content/Features/Community/ProfileHome/FCommunityProfileLinks.svelte b/src/js/Content/Features/Community/ProfileHome/FCommunityProfileLinks.svelte index f01669bdd..8dddcb1ff 100644 --- a/src/js/Content/Features/Community/ProfileHome/FCommunityProfileLinks.svelte +++ b/src/js/Content/Features/Community/ProfileHome/FCommunityProfileLinks.svelte @@ -12,6 +12,12 @@ +{#if (language === "schinese" || language === "tchinese") && Settings.profile_steamrepcn} + + {language === "schinese" ? "查看信誉记录" : "確認信譽記錄"} + +{/if} + {#if Settings.profile_steamrep} SteamRep {/if} @@ -48,12 +54,6 @@ {/if} -{#if (language === "schinese" || language === "tchinese") && Settings.profile_steamrepcn} - - {language === "schinese" ? "查看信誉记录" : "確認信譽記錄"} - -{/if} - {#each Settings.profile_custom_link as customLink} {#if customLink.enabled} Date: Sun, 25 Aug 2024 03:40:25 +0800 Subject: [PATCH 2/2] Split out icons.css --- src/css/augmentedsteam.css | 56 ----------------- src/html/options.html | 1 - .../Modules/Community/ProfileLink.svelte | 22 ++++--- .../Modules/Icons/ProfileLinkIcon.svelte | 62 +++++++++++++++++++ .../Modules/Options/CommunityOptions.svelte | 29 +++------ .../Options/Components/ProfileLink.svelte | 18 ++++++ 6 files changed, 104 insertions(+), 84 deletions(-) create mode 100644 src/js/Options/Modules/Icons/ProfileLinkIcon.svelte create mode 100644 src/js/Options/Modules/Options/Components/ProfileLink.svelte diff --git a/src/css/augmentedsteam.css b/src/css/augmentedsteam.css index 9eff376c9..0dc62ad3b 100644 --- a/src/css/augmentedsteam.css +++ b/src/css/augmentedsteam.css @@ -1718,33 +1718,6 @@ label.es_dlc_label > input:checked::after { padding-left: 28px; } -/*************************************** - * User profiles - * FCommunityProfileLinks - **************************************/ -.es_sites_icons { - display: inline-flex; - align-items: center; -} -.es_sites_icons:not(.es_none)::before, .es_sites_custom_icon { - content: ""; - display: inline-block; - width: 16px; - height: 16px; - margin: 0 5px 0 0; - background-color: #222222; - background-repeat: no-repeat; - background-size: 16px !important; - background-position: 2px 2px !important; - padding: 2px; - border-radius: 3px; - box-shadow: inset 0 0 1px 1px rgb(0, 0, 0), 0 0 0 1px rgba(193, 193, 193, 0.17); - vertical-align: top; -} -.es_sites_icons.es_gray::before, .es_sites_icons .es_gray { - filter: grayscale(100%); -} - /*************************************** * User profiles * FTwitchShowcase @@ -2073,35 +2046,6 @@ label.es_dlc_label > input:checked::after { vertical-align: baseline; } -.es_sites_icons.es_steamrepcn_icon:before { - background-image: url("extension://img/ico/srcn.png"); -} -.es_sites_icons.es_steamrep_icon:before { - background-image: url("extension://img/ico/steamrep.png"); - background-color: rgb(235, 235, 235); -} -.es_sites_icons.es_steamdbcalc_icon:before { - background-image: url("extension://img/ico/steamdb.png"); -} -.es_sites_icons.es_steamgifts_icon:before { - background-image: url("extension://img/ico/steamgifts.png"); -} -.es_sites_icons.es_steamtrades_icon:before { - background-image: url("extension://img/ico/steamtrades.png"); -} -.es_sites_icons.es_bartervg_icon:before { - background-image: url("extension://img/ico/bartervg.png"); -} -.es_sites_icons.es_astats_icon:before { - background-image: url("extension://img/ico/achievementstats.png"); -} -.es_sites_icons.es_backpacktf_icon:before { - background-image: url("extension://img/ico/backpacktf.png"); -} -.es_sites_icons.es_astatsnl_icon:before { - background-image: url("extension://img/ico/astatsnl.png"); -} - /* || DOUBLE SLIDER */ diff --git a/src/html/options.html b/src/html/options.html index 976c38344..59d75479b 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -4,7 +4,6 @@ Augmented Steam Options - diff --git a/src/js/Content/Modules/Community/ProfileLink.svelte b/src/js/Content/Modules/Community/ProfileLink.svelte index 08ca2ae28..a6668939d 100644 --- a/src/js/Content/Modules/Community/ProfileLink.svelte +++ b/src/js/Content/Modules/Community/ProfileLink.svelte @@ -1,24 +1,30 @@ -