Skip to content

armgit / ente

Public Imported from GitHub
0

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

Try without blur

Manav Rathi7c0cc15a73bc
diff --git a/web/apps/cast/src/components/Slide.tsx b/web/apps/cast/src/components/Slide.tsx
index 4bb9306af4..648f737dbf 100644
--- a/web/apps/cast/src/components/Slide.tsx
+++ b/web/apps/cast/src/components/Slide.tsx
@@ -13,8 +13,8 @@ interface SlideViewProps {
*/
export const SlideView: React.FC<SlideViewProps> = ({ url }) => {
return (
- <Container>
- <img src={url} alt="" />
+ <Container style={{ backgroundImage: `url(${url})` }}>
+ <img src={url} decoding="sync" alt="" />
</Container>
);
};
@@ -23,13 +23,12 @@ const Container = styled("div")`
width: 100%;
height: 100%;
- /*
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-blend-mode: multiply;
background-color: rgba(0, 0, 0, 0.5);
- */
+ opacity: 0.2;
/* Smooth out the transition a bit.
*
@@ -50,7 +49,7 @@ const Container = styled("div")`
img {
width: 100%;
height: 100%;
- backdrop-filter: blur(10px);
+ /* backdrop-filter: blur(10px); */
object-fit: contain;
}
`;