[Regression] Fix iPad subtitle font size on Header (#4586)
This commit is contained in:
parent
b1a62b589f
commit
2779f74102
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue