π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos][web] Restore original shortcut rendering
AswinAsok82ad0911e6c0
diff --git a/web/apps/photos/src/components/gallery/BarImpl.tsx b/web/apps/photos/src/components/gallery/BarImpl.tsxindex dddf5e6d3a..8deaf453f3 100644--- a/web/apps/photos/src/components/gallery/BarImpl.tsx+++ b/web/apps/photos/src/components/gallery/BarImpl.tsx@@ -262,40 +262,6 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({},];- const renderAlbumShortcut = ({- id,- label,- icon,- active,- }: (typeof albumShortcuts)[number]) => (- <BarCard- key={id}- aria-label={label}- aria-current={active ? "true" : undefined}- onClick={() => {- void onShowCollectionSummary(- id,- id == PseudoCollectionID.hiddenItems,- ).then(async (success) => {- if (!success || !mobile) return;- if (id == PseudoCollectionID.hiddenItems) await wait(10);- mobileDrawerProps.onClose();- });- }}- sx={{ flexShrink: 0 }}- >- <HugeiconsIcon icon={icon} size={20} aria-hidden />- <CardText>{label}</CardText>- {id == PseudoCollectionID.hiddenItems ? (- <LockOutlinedIcon sx={{ color: "text.muted", fontSize: 19 }} />- ) : (- <Typography variant="small" sx={{ color: "text.muted" }}>- {normalCollectionSummaries.get(id)?.fileCount}- </Typography>- )}- </BarCard>- );-const albumListID = `${titleID}-albums`;const items = (<Box@@ -588,9 +554,43 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({opacity: 0.5,}}/>- {albumShortcuts.map((shortcut) =>- renderAlbumShortcut(shortcut),- )}+ {albumShortcuts.map(({ id, label, icon, active }) => (+ <BarCard+ key={id}+ aria-label={label}+ aria-current={active ? "true" : undefined}+ onClick={() => {+ void onShowCollectionSummary(+ id,+ id == PseudoCollectionID.hiddenItems,+ ).then(async (success) => {+ if (!success || !mobile) return;+ if (id == PseudoCollectionID.hiddenItems)+ await wait(10);+ mobileDrawerProps.onClose();+ });+ }}+ sx={{ flexShrink: 0 }}+ >+ <HugeiconsIcon icon={icon} size={20} aria-hidden />+ <CardText>{label}</CardText>+ {id == PseudoCollectionID.hiddenItems ? (+ <LockOutlinedIcon+ sx={{ color: "text.muted", fontSize: 19 }}+ />+ ) : (+ <Typography+ variant="small"+ sx={{ color: "text.muted" }}+ >+ {+ normalCollectionSummaries.get(id)+ ?.fileCount+ }+ </Typography>+ )}+ </BarCard>+ ))}</Stack>)}</Stack>