Skip to content

armgit / ente

Public Imported from GitHub
0

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

public album likes and comments loading spinner center

Anand Baburajan42d34c5ecb83
diff --git a/web/packages/gallery/components/viewer/CommentsSidebar.tsx b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
index 6addd632ed..ded9130483 100644
--- a/web/packages/gallery/components/viewer/CommentsSidebar.tsx
+++ b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
@@ -2266,7 +2266,9 @@ const LoadingContainer = styled(Box)(() => ({
display: "flex",
justifyContent: "center",
alignItems: "center",
- padding: "48px 0",
+ height: "100%",
+ // Offset for header (marginBottom: 48) + padding diff (32-24=8) = 56, halved
+ marginTop: -28,
}));
const EmptyMessage = styled(Typography)(({ theme }) => ({
diff --git a/web/packages/gallery/components/viewer/LikesSidebar.tsx b/web/packages/gallery/components/viewer/LikesSidebar.tsx
index 46787abbc7..05fb404a65 100644
--- a/web/packages/gallery/components/viewer/LikesSidebar.tsx
+++ b/web/packages/gallery/components/viewer/LikesSidebar.tsx
@@ -801,7 +801,9 @@ const LoadingContainer = styled(Box)(() => ({
display: "flex",
justifyContent: "center",
alignItems: "center",
- padding: "48px 0",
+ height: "100%",
+ // Offset for header (marginBottom: 48) + padding diff (32-24=8) = 56, halved
+ marginTop: -28,
}));
const EmptyMessage = styled(Typography)(({ theme }) => ({