Skip to content

armgit / ente

Public Imported from GitHub
0

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

update livePhoto icon in photoViewer

Abhinavb42ff6315bc7
diff --git a/apps/photos/src/components/LivePhotoBtn.tsx b/apps/photos/src/components/LivePhotoBtn.tsx
deleted file mode 100644
index bb1976db92..0000000000
--- a/apps/photos/src/components/LivePhotoBtn.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from 'react';
-
-export const livePhotoBtnHTML = (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- height="25px"
- width="25px"
- fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495l1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115l1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96l1.41 1.41 1.79-1.8-1.41-1.41z" />
- </svg>
-);
diff --git a/apps/photos/src/components/PhotoViewer/index.tsx b/apps/photos/src/components/PhotoViewer/index.tsx
index fe4e0eb0af..4db0d5e7e5 100644
--- a/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/apps/photos/src/components/PhotoViewer/index.tsx
@@ -13,7 +13,6 @@ import {
getFileExtension,
getFileFromURL,
} from 'utils/file';
-import { livePhotoBtnHTML } from 'components/LivePhotoBtn';
import { logError } from 'utils/sentry';
import { FILE_TYPE } from 'constants/file';
@@ -49,6 +48,8 @@ import downloadManager from 'services/downloadManager';
import publicCollectionDownloadManager from 'services/publicCollectionDownloadManager';
import CircularProgressWithLabel from './styledComponents/CircularProgressWithLabel';
import EnteSpinner from 'components/EnteSpinner';
+import AlbumOutlined from '@mui/icons-material/AlbumOutlined';
+import { FlexWrapper } from 'components/Container';
interface PhotoswipeFullscreenAPI {
enter: () => void;
@@ -622,7 +623,9 @@ function PhotoViewer(props: Iprops) {
onMouseEnter={livePhotoBtnOptions.show}
onMouseLeave={livePhotoBtnOptions.hide}
disabled={livePhotoBtnOptions.loading}>
- {livePhotoBtnHTML} {t('LIVE')}
+ <FlexWrapper gap={'4px'}>
+ {<AlbumOutlined />} {t('LIVE')}
+ </FlexWrapper>
</LivePhotoBtn>
)}
<ConversionFailedNotification
diff --git a/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx b/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx
index 88637e93b0..e1d0c393f7 100644
--- a/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx
+++ b/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx
@@ -3,7 +3,7 @@ export const LivePhotoBtn = styled((props: ButtonProps) => (
<Button color="secondary" {...props} />
))`
position: absolute;
- bottom: 6vh;
+ bottom: 10vh;
right: 6vh;
outline: none;
border: none;