Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix misaligned icons

Abhinavc679bc38da2a
diff --git a/apps/photos/src/components/PhotoViewer/index.tsx b/apps/photos/src/components/PhotoViewer/index.tsx
index 4487ca5e67..0dc08e0318 100644
--- a/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/apps/photos/src/components/PhotoViewer/index.tsx
@@ -698,7 +698,7 @@ function PhotoViewer(props: Iprops) {
className="pswp__button pswp__button--custom"
title={t('CLOSE_OPTION')}
onClick={handleClose}>
- <CloseIcon fontSize="small" />
+ <CloseIcon />
</button>
{props.enableDownload && (
@@ -708,7 +708,7 @@ function PhotoViewer(props: Iprops) {
onClick={() =>
downloadFileHelper(photoSwipe.currItem)
}>
- <DownloadIcon fontSize="small" />
+ <DownloadIcon />
</button>
)}
{props.enableDownload && shouldShowCopyOption && (
@@ -732,14 +732,14 @@ function PhotoViewer(props: Iprops) {
photoSwipe?.currItem as EnteFile
);
}}>
- <DeleteIcon fontSize="small" />
+ <DeleteIcon />
</button>
)}
<button
className="pswp__button pswp__button--custom"
onClick={toggleZoomInAndOut}
title={t('ZOOM_IN_OUT')}>
- <ZoomInOutlinedIcon fontSize="small" />
+ <ZoomInOutlinedIcon />
</button>
<button
className="pswp__button pswp__button--custom"
@@ -747,14 +747,14 @@ function PhotoViewer(props: Iprops) {
toggleFullscreen(photoSwipe);
}}
title={t('TOGGLE_FULLSCREEN')}>
- <FullscreenOutlinedIcon fontSize="small" />
+ <FullscreenOutlinedIcon sx={{ fontSize: 32 }} />
</button>
<button
className="pswp__button pswp__button--custom"
title={t('INFO_OPTION')}
onClick={handleOpenInfo}>
- <InfoIcon fontSize="small" />
+ <InfoIcon />
</button>
{isOwnFile &&
!props.isTrashCollection &&
@@ -772,9 +772,9 @@ function PhotoViewer(props: Iprops) {
);
}}>
{isFav ? (
- <FavoriteIcon fontSize="small" />
+ <FavoriteIcon />
) : (
- <FavoriteBorderIcon fontSize="small" />
+ <FavoriteBorderIcon />
)}
</button>
)}
diff --git a/apps/photos/src/styles/global.css b/apps/photos/src/styles/global.css
index 2ced591a5d..2dace242c1 100644
--- a/apps/photos/src/styles/global.css
+++ b/apps/photos/src/styles/global.css
@@ -46,6 +46,8 @@ body {
}
.pswp__button--custom {
+ width: 48px;
+ height: 48px;
background: none !important;
background-image: none !important;
color: #fff;