diff --git a/net/web/src/session/conversation/topicItem/imageAsset/ImageAsset.jsx b/net/web/src/session/conversation/topicItem/imageAsset/ImageAsset.jsx index 5879a3e5..f68d69e9 100644 --- a/net/web/src/session/conversation/topicItem/imageAsset/ImageAsset.jsx +++ b/net/web/src/session/conversation/topicItem/imageAsset/ImageAsset.jsx @@ -12,12 +12,12 @@ export function ImageAsset({ thumbUrl, fullUrl }) { const popout = () => { if (dimension.width / dimension.height > window.innerWidth / window.innerHeight) { - let width = Math.floor(window.innerWidth * 8 / 10); + let width = Math.floor(window.innerWidth * 9 / 10); let height = Math.floor(width * dimension.height / dimension.width); actions.setPopout(width, height); } else { - let height = Math.floor(window.innerHeight * 8 / 10); + let height = Math.floor(window.innerHeight * 9 / 10); let width = Math.floor(height * dimension.width / dimension.height); actions.setPopout(width, height); } @@ -38,23 +38,15 @@ export function ImageAsset({ thumbUrl, fullUrl }) { return }} - { state.display !== 'small' && ( -
-
- +
+
+ +
topic image - -
- )} - { state.display === 'small' && !state.popout && ( -
- )} - { state.display === 'small' && state.popout && ( -
- -
- )} +
+
+
) } diff --git a/net/web/src/session/conversation/topicItem/videoAsset/VideoAsset.jsx b/net/web/src/session/conversation/topicItem/videoAsset/VideoAsset.jsx index 1b8d936b..680d3868 100644 --- a/net/web/src/session/conversation/topicItem/videoAsset/VideoAsset.jsx +++ b/net/web/src/session/conversation/topicItem/videoAsset/VideoAsset.jsx @@ -40,14 +40,10 @@ export function VideoAsset({ thumbUrl, lqUrl, hdUrl }) {
)} - { state.active && state.display === 'small' && ( -
)