Merge pull request #1582 from PR0M3TH3AN/unify-styling-tokens-15997766081724410140

Refactor hardcoded styles to use token constants
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-23 10:20:13 -05:00
commit 36c19fa3d2
4 files changed
+11 -21

No files matched your search

+2
View File
@@ -6,6 +6,8 @@ const FALLBACK_CONTEXT = Object.freeze({
isNew: () => true,
});
export const BREAKPOINT_LG = 1024;
export function getDesignSystemMode() {
return NEW_MODE;
}
+5 -2
View File
@@ -1,4 +1,7 @@
import { normalizeDesignSystemContext } from "../../designSystem.js";
import {
normalizeDesignSystemContext,
BREAKPOINT_LG,
} from "../../designSystem.js";
import { updateVideoCardSourceVisibility } from "../../utils/cardSourceVisibility.js";
import { sanitizeProfileMediaUrl } from "../../utils/profileMedia.js";
import { userLogger } from "../../utils/logger.js";
@@ -3046,7 +3049,7 @@ export class VideoCard {
// Prevent active state on desktop to avoid conflicting with hover
const isDesktop =
typeof window !== "undefined" &&
window.matchMedia("(min-width: 1024px)").matches;
window.matchMedia(`(min-width: ${BREAKPOINT_LG}px)`).matches;
for (const entry of entries) {
if (isDesktop) {