Skip to content

Commit

Permalink
Mainlineable
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr committed Feb 17, 2025
1 parent 0e3708f commit 6ccca21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions web/apps/photos/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ import { useCallback, useEffect, useMemo, useState } from "react";
import { resumeExportsIfNeeded } from "services/export";
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.
import "../../../../packages/gallery/components/viewer/ps5/dist/photoswipe.css";
// import "../../../../packages/gallery/components/viewer/ps5/dist/photoswipe.css";

import "styles/global.css";

Expand Down
3 changes: 1 addition & 2 deletions web/apps/photos/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
flex-direction: column;
height: 100%;
}
@media DISABLED {

.pswp__button--custom {
width: 48px;
height: 48px;
Expand Down Expand Up @@ -114,7 +114,6 @@ body {
.pswp__caption--empty {
display: none;
}
}

.pswp-ente {
/* The default z-index for PhotoSwipe is 10k, way beyond everything else.
Expand Down
2 changes: 1 addition & 1 deletion web/packages/gallery/components/viewer/photoswipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
let PhotoSwipe;
if (process.env.NEXT_PUBLIC_ENTE_WIP_PS5) {
// 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 & {
Expand Down

0 comments on commit 6ccca21

Please sign in to comment.