Masonry: fix typo

This commit is contained in:
thislight 2024-11-24 16:00:56 +08:00
parent 4c0925a6a1
commit 5199f2bb6a
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 4 additions and 4 deletions

2
.env
View file

@ -2,4 +2,4 @@ DEV_SERVER_HTTPS_CERT_BASE=
DEV_SERVER_HTTPS_CERT_PASS= DEV_SERVER_HTTPS_CERT_PASS=
DEV_LOCATOR_EDITOR=vscode DEV_LOCATOR_EDITOR=vscode
VITE_DEVTOOLS_OVERLAY=true VITE_DEVTOOLS_OVERLAY=true
VITE_PLATFROM_MASONRY_ALWAYS_COMPAT= VITE_PLATFORM_MASONRY_ALWAYS_COMPAT=

2
src/overrides.d.ts vendored
View file

@ -14,7 +14,7 @@ interface ImportMetaEnv {
/** /**
* Always use compatible version of Masonry. * Always use compatible version of Masonry.
*/ */
readonly VITE_PLATFROM_MASONRY_ALWAYS_COMPAT?: string readonly VITE_PLATFORM_MASONRY_ALWAYS_COMPAT?: string
} }
interface ImportMeta { interface ImportMeta {

View file

@ -80,11 +80,11 @@ const supportsCSSMasonryLayout = /* @__PURE__ */ CSS.supports(
console.debug("supports css masonry layout", supportsCSSMasonryLayout); console.debug("supports css masonry layout", supportsCSSMasonryLayout);
const useNativeImpl = import.meta.env.VITE_PLATFROM_MASONRY_ALWAYS_COMPAT const useNativeImpl = import.meta.env.VITE_PLATFORM_MASONRY_ALWAYS_COMPAT
? false ? false
: supportsCSSMasonryLayout; : supportsCSSMasonryLayout;
if (import.meta.env.VITE_PLATFROM_MASONRY_ALWAYS_COMPAT) { if (import.meta.env.VITE_PLATFORM_MASONRY_ALWAYS_COMPAT) {
console.warn( console.warn(
"Masonry is in compat mode because VITE_PLATFORM_MASONRY_ALWAYS_COMPAT is enabled", "Masonry is in compat mode because VITE_PLATFORM_MASONRY_ALWAYS_COMPAT is enabled",
); );