Add breakpoint token helpers for media queries

This commit is contained in:
thePR0M3TH3AN committed 2026-01-13 21:26:53 -05:00
1 parent 8f687e2eb1
commit 06c3d9a978
4 files changed
+19 -4

No files matched your search

+3 -1
View File
@@ -13,6 +13,7 @@ import {
DEFAULT_TRUSTED_SPAM_HIDE_THRESHOLD,
RUNTIME_FLAGS,
} from "../constants.js";
import { getBreakpointLg } from "../designSystem/metrics.js";
import { getProviderMetadata } from "../services/authProviders/index.js";
import { devLogger, userLogger } from "../utils/logger.js";
@@ -3683,7 +3684,8 @@ export class ProfileModalController {
}
try {
const query = window.matchMedia("(min-width: 1024px)");
const breakpointLg = getBreakpointLg();
const query = window.matchMedia(`(min-width: ${breakpointLg})`);
const handler = (event) => {
const matches =
typeof event?.matches === "boolean" ? event.matches : query.matches;