mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 11:52:25 +00:00
Merge pull request #1582 from PR0M3TH3AN/unify-styling-tokens-15997766081724410140
Refactor hardcoded styles to use token constants
This commit is contained in:
4 files changed
+11
-21
No files matched your search
@@ -6,6 +6,8 @@ const FALLBACK_CONTEXT = Object.freeze({
|
||||
isNew: () => true,
|
||||
});
|
||||
|
||||
export const BREAKPOINT_LG = 1024;
|
||||
|
||||
export function getDesignSystemMode() {
|
||||
return NEW_MODE;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user