mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 03:42:26 +00:00
Add breakpoint token helpers for media queries
This commit is contained in:
1 parent
8f687e2eb1
commit
06c3d9a978
4 files changed
+19
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user