diff --git a/src/assets/css/root.styl b/src/assets/css/root.styl index b531acd..87d29b2 100755 --- a/src/assets/css/root.styl +++ b/src/assets/css/root.styl @@ -194,14 +194,6 @@ div[class*=NotFocusedDialog] { visibility: hidden; } -/* Hide Controller icon in Game tiles */ -div[class*=SupportedInputsBadge] { - &:not(:has(:nth-child(2))), svg:first-of-type { - display: none; - } -} - - .bx-game-tile-wait-time { position: absolute; top: 0; diff --git a/src/modules/patcher/patches/src/game-card-icons.ts b/src/modules/patcher/patches/src/game-card-icons.ts index 1b6d23b..b1c5555 100644 --- a/src/modules/patcher/patches/src/game-card-icons.ts +++ b/src/modules/patcher/patches/src/game-card-icons.ts @@ -4,6 +4,9 @@ declare const $param$: { productId: string }; const supportedInputIcons = $supportedInputIcons$; const { productId } = $param$; +// Remove controller icon +supportedInputIcons.shift(); + if (window.BX_EXPOSED.localCoOpManager.isSupported(productId)) { supportedInputIcons.push(window.BX_EXPOSED.createReactLocalCoOpIcon); } diff --git a/src/utils/css.ts b/src/utils/css.ts index ec24ef7..50a98cb 100755 --- a/src/utils/css.ts +++ b/src/utils/css.ts @@ -1,5 +1,5 @@ import { CE } from "@utils/html"; -import { compressCss, renderStylus } from "@macros/build" with { type: "macro" }; +import { compressCss, isLiteVersion, renderStylus } from "@macros/build" with { type: "macro" }; import { BlockFeature, UiSection } from "@/enums/pref-values"; import { PrefKey } from "@/enums/pref-keys"; import { getPref } from "./settings-storages/global-settings-storage"; @@ -12,6 +12,11 @@ export function addCss() { const PREF_HIDE_SECTIONS = getPref(PrefKey.UI_HIDE_SECTIONS); const selectorToHide = []; + if (isLiteVersion()) { + // Hide Controller icon in Game tiles + selectorToHide.push('div[class*=SupportedInputsBadge] svg:first-of-type'); + } + // Hide "News" section if (PREF_HIDE_SECTIONS.includes(UiSection.NEWS)) { selectorToHide.push('#BodyContent > div[class*=CarouselRow-module]');