Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reset scroll pos

Manav Rathie0b8999696fd
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
index 6af2c8e65c..840bec6f35 100644
--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx
+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
@@ -474,6 +474,7 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
</Stack>
{state.choices.length > 1 && (
<IconButton
+ disableTouchRipple
onClick={() => dispatch({ type: "toggleHistory" })}
aria-label={
!state.showChoices
@@ -490,7 +491,11 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
</IconButton>
)}
</SpaceBetweenFlex>
- <DialogContent sx={{ display: "flex", "&&&": { pt: 0 } }}>
+ <DialogContent
+ /* Reset scroll position on switching view */
+ key={`${state.showChoices}`}
+ sx={{ display: "flex", "&&&": { pt: 0 } }}
+ >
{state.activity == "fetching" ? (
<CenteredBox>
<ActivityIndicator>