From 2d68faff3fff1170c607a8388b932d80c619ff8d Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Tue, 4 Oct 2022 09:56:39 -0300 Subject: [PATCH] [Regression] Fix iPad subtitle font size on Header (#4586) --- app/containers/RoomHeader/RoomHeader.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/containers/RoomHeader/RoomHeader.tsx b/app/containers/RoomHeader/RoomHeader.tsx index 460afe67..76975bb1 100644 --- a/app/containers/RoomHeader/RoomHeader.tsx +++ b/app/containers/RoomHeader/RoomHeader.tsx @@ -7,6 +7,7 @@ import { MarkdownPreview } from '../markdown'; import RoomTypeIcon from '../RoomTypeIcon'; import { TUserStatus, IOmnichannelSource } from '../../definitions'; import { useTheme } from '../../theme'; +import { useAppSelector } from '../../lib/hooks'; const HIT_SLOP = { top: 5, @@ -141,8 +142,9 @@ const Header = React.memo( const { colors } = useTheme(); const portrait = height > width; let scale = 1; + const isMasterDetail = useAppSelector(state => state.app.isMasterDetail); - if (!portrait && !tmid) { + if (!portrait && !tmid && !isMasterDetail) { if (usersTyping.length > 0 || subtitle) { scale = 0.8; }