[Regression] Fix iPad subtitle font size on Header (#4586)

This commit is contained in:
Gleidson Daniel Silva 2022-10-04 09:56:39 -03:00 committed by Diego Mello
parent b1a62b589f
commit 2779f74102
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}