Skip to content

armgit / ente

Public Imported from GitHub
0

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

Contents

Manav Rathi85b545049ef4
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index c0b3505859..08111b33c6 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -174,7 +174,7 @@ const SelectedFileOptions = ({
};
return (
- <NavbarBaseNormalFlow>
+ <>
<FluidContainer>
<IconButton onClick={clearSelection}>
<CloseIcon />
@@ -417,7 +417,7 @@ const SelectedFileOptions = ({
</>
)}
</Stack>
- </NavbarBaseNormalFlow>
+ </>
);
};
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 0a9c9357dc..1145eaf0e1 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -229,6 +229,8 @@ const WindowTitlebar: React.FC<React.PropsWithChildren> = ({ children }) => (
const WindowTitlebarArea = styled(CenteredRow)`
width: 100%;
height: env(titlebar-area-height, 30px /* fallback */);
- /* Allow using the titlebar to drag the window */
+ /* LoadingIndicator is 100vh, so resist shrinking when shown with it. */
+ flex-shrink: 0;
+ /* Allow using the titlebar to drag the window. */
app-region: drag;
`;
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 2c980c80bd..4ebffacb1c 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -948,29 +948,8 @@ const Page: React.FC = () => {
"@media (width < 720px)": { px: "4px" },
}}
>
- {barMode == "hidden-albums" ? (
- <HiddenSectionNavbarContents
- onBack={() => dispatch({ type: "showAlbums" })}
- />
- ) : (
- <NormalNavbarContents
- {...{
- openSidebar,
- openUploader,
- isInSearchMode,
- onShowSearchInput: () =>
- dispatch({ type: "enterSearchMode" }),
- onSelectSearchOption: handleSelectSearchOption,
- onSelectPeople: () =>
- dispatch({ type: "showPeople" }),
- onSelectPerson: (personID) =>
- dispatch({ type: "showPerson", personID }),
- }}
- />
- )}
- </NavbarBaseNormalFlow>
- {selected.count > 0 &&
- selected.collectionID === activeCollectionID && (
+ {selected.count > 0 &&
+ selected.collectionID === activeCollectionID ? (
<SelectedFileOptions
handleCollectionOps={collectionOpsHelper}
handleFileOps={fileOpsHelper}
@@ -1006,7 +985,31 @@ const Page: React.FC = () => {
isInSearchMode={isInSearchMode}
isInHiddenSection={barMode == "hidden-albums"}
/>
+ ) : barMode == "hidden-albums" ? (
+ <HiddenSectionNavbarContents
+ onBack={() => dispatch({ type: "showAlbums" })}
+ />
+ ) : (
+ <NormalNavbarContents
+ {...{
+ openSidebar,
+ openUploader,
+ isInSearchMode,
+ onShowSearchInput: () =>
+ dispatch({ type: "enterSearchMode" }),
+ onSelectSearchOption: handleSelectSearchOption,
+ onSelectPeople: () =>
+ dispatch({ type: "showPeople" }),
+ onSelectPerson: (personID) =>
+ dispatch({
+ type: "showPerson",
+ personID,
+ }),
+ }}
+ />
)}
+ </NavbarBaseNormalFlow>
+
{isOffline && <OfflineMessage />}
<GalleryBarAndListHeader