Mainlineable

This commit is contained in:
Manav Rathi 2025-02-17 19:37:03 +05:30
parent 0e3708ffdc
commit 6ccca2114e
No known key found for this signature in database
3 changed files with 4 additions and 5 deletions

View File

@ -51,9 +51,9 @@ import { useCallback, useEffect, useMemo, useState } from "react";
import { resumeExportsIfNeeded } from "services/export"; import { resumeExportsIfNeeded } from "services/export";
import { photosLogout } from "services/logout"; import { photosLogout } from "services/logout";
// import "photoswipe/dist/photoswipe.css"; import "photoswipe/dist/photoswipe.css";
// TODO(PS): Note, auto hide only works with the new CSS. // TODO(PS): Note, auto hide only works with the new CSS.
import "../../../../packages/gallery/components/viewer/ps5/dist/photoswipe.css"; // import "../../../../packages/gallery/components/viewer/ps5/dist/photoswipe.css";
import "styles/global.css"; import "styles/global.css";

View File

@ -12,7 +12,7 @@ body {
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
} }
@media DISABLED {
.pswp__button--custom { .pswp__button--custom {
width: 48px; width: 48px;
height: 48px; height: 48px;
@ -114,7 +114,6 @@ body {
.pswp__caption--empty { .pswp__caption--empty {
display: none; display: none;
} }
}
.pswp-ente { .pswp-ente {
/* The default z-index for PhotoSwipe is 10k, way beyond everything else. /* The default z-index for PhotoSwipe is 10k, way beyond everything else.

View File

@ -23,7 +23,7 @@ if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
let PhotoSwipe; let PhotoSwipe;
if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) { if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
// TODO(PS): Comment me before merging into main. // TODO(PS): Comment me before merging into main.
PhotoSwipe = require("./ps5/dist/photoswipe.esm.js").default; // PhotoSwipe = require("./ps5/dist/photoswipe.esm.js").default;
} }
type FileViewerPhotoSwipeOptions = FileViewerProps & { type FileViewerPhotoSwipeOptions = FileViewerProps & {