From b8890044cac148b39695864e0981ffe4ec7268a5 Mon Sep 17 00:00:00 2001 From: Abir Chakraborty <142606190+abirc8010@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:56:13 +0530 Subject: [PATCH 1/3] fix: video modal responsiveness (#726) * video modal fix * Make video modal occupy full space * make the video modal occupy full size only for smaller screens * change screen width upper-bound from 500px to 768px --- packages/react/src/views/ChatInput/ChatInput.styles.js | 8 ++++++++ .../react/src/views/ChatInput/VideoMessageRecoder.js | 9 ++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/react/src/views/ChatInput/ChatInput.styles.js b/packages/react/src/views/ChatInput/ChatInput.styles.js index 7aa85e40f..21e7a2473 100644 --- a/packages/react/src/views/ChatInput/ChatInput.styles.js +++ b/packages/react/src/views/ChatInput/ChatInput.styles.js @@ -112,6 +112,14 @@ export const getCommonRecorderStyles = (theme) => { display: flex; margin: auto; `, + modal: { + '@media(max-width: 768px)': { + height: '100%', + width: '100%', + maxHeight: '100%', + maxWidth: '100%', + }, + }, }; return styles; diff --git a/packages/react/src/views/ChatInput/VideoMessageRecoder.js b/packages/react/src/views/ChatInput/VideoMessageRecoder.js index 911df74c6..91783d676 100644 --- a/packages/react/src/views/ChatInput/VideoMessageRecoder.js +++ b/packages/react/src/views/ChatInput/VideoMessageRecoder.js @@ -164,10 +164,7 @@ const VideoMessageRecorder = ({ disabled }) => {