Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix formatting and import ordering

Anand Baburajan11a8b66726d7
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 051b636a80..8169bb778f 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -2,7 +2,6 @@ import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import EditIcon from "@mui/icons-material/Edit";
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
-import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import LinkIcon from "@mui/icons-material/Link";
import LogoutIcon from "@mui/icons-material/Logout";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
@@ -34,6 +33,7 @@ import {
GalleryItemsHeaderAdapter,
GalleryItemsSummary,
} from "ente-new/photos/components/gallery/ListHeader";
+import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import {
defaultHiddenCollectionUserFacingName,
deleteCollection,
@@ -93,7 +93,8 @@ export const CollectionHeader: React.FC<CollectionHeaderProps> = (props) => {
if (attributes.has("archived")) return <ArchiveOutlinedIcon />;
if (attributes.has("sharedOnlyViaLink")) return <LinkIcon />;
if (attributes.has("shared")) return <PeopleIcon />;
- if (attributes.has("userFavorites")) return <StarIcon fontSize="small" />;
+ if (attributes.has("userFavorites"))
+ return <StarIcon fontSize="small" />;
return <></>;
};
diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx
index f0b8be7368..182678e496 100644
--- a/web/apps/photos/src/components/FileList.tsx
+++ b/web/apps/photos/src/components/FileList.tsx
@@ -1,6 +1,5 @@
import AlbumOutlinedIcon from "@mui/icons-material/AlbumOutlined";
import PlayCircleOutlineOutlinedIcon from "@mui/icons-material/PlayCircleOutlineOutlined";
-import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import { Box, Checkbox, Typography, styled } from "@mui/material";
import Avatar from "components/Avatar";
import type { LocalUser } from "ente-accounts/services/user";
@@ -13,6 +12,7 @@ import type { EnteFile } from "ente-media/file";
import { fileDurationString } from "ente-media/file-metadata";
import { FileType } from "ente-media/file-type";
import type { GalleryBarMode } from "ente-new/photos/components/gallery/reducer";
+import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import {
LoadingThumbnail,
StaticThumbnail,
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index deec41847b..cc1d682584 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -501,7 +501,10 @@ body:has(
}
/* Hide gradient overlay when description is not present */
-.pswp-ente .pswp__bottom-right-controls:has(.pswp__caption[style*="display: none"])::before {
+.pswp-ente
+ .pswp__bottom-right-controls:has(
+ .pswp__caption[style*="display: none"]
+ )::before {
display: none;
}
diff --git a/web/packages/new/photos/components/SelectedFileOptions.tsx b/web/packages/new/photos/components/SelectedFileOptions.tsx
index 682a8e2e3e..3abda1c2e5 100644
--- a/web/packages/new/photos/components/SelectedFileOptions.tsx
+++ b/web/packages/new/photos/components/SelectedFileOptions.tsx
@@ -6,7 +6,6 @@ import CloseIcon from "@mui/icons-material/Close";
import DeleteIcon from "@mui/icons-material/Delete";
import DownloadIcon from "@mui/icons-material/Download";
import RemoveIcon from "@mui/icons-material/RemoveCircleOutline";
-import { StarBorderIcon } from "ente-new/photos/components/icons/StarIcon";
import RestoreIcon from "@mui/icons-material/Restore";
import UnArchiveIcon from "@mui/icons-material/Unarchive";
import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
@@ -18,6 +17,7 @@ import { useBaseContext } from "ente-base/context";
import type { Collection } from "ente-media/collection";
import type { CollectionSelectorAttributes } from "ente-new/photos/components/CollectionSelector";
import type { GalleryBarMode } from "ente-new/photos/components/gallery/reducer";
+import { StarBorderIcon } from "ente-new/photos/components/icons/StarIcon";
import {
PseudoCollectionID,
type CollectionSummary,
diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsx
index 4eda5ab01e..dd3074bf95 100644
--- a/web/packages/new/photos/components/gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/gallery/BarImpl.tsx
@@ -1,7 +1,6 @@
import ArchiveIcon from "@mui/icons-material/Archive";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import LinkIcon from "@mui/icons-material/Link";
-import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import NavigateNextIcon from "@mui/icons-material/NavigateNext";
import PeopleIcon from "@mui/icons-material/People";
import PushPinIcon from "@mui/icons-material/PushPin";
@@ -11,6 +10,7 @@ import { FilledIconButton } from "ente-base/components/mui";
import { Ellipsized2LineTypography } from "ente-base/components/Typography";
import { useIsSmallWidth } from "ente-base/components/utils/hooks";
import { CollectionsSortOptions } from "ente-new/photos/components/CollectionsSortOptions";
+import { StarIcon } from "ente-new/photos/components/icons/StarIcon";
import {
BarItemTile,
ItemCard,