[Regression] Fix iPad subtitle font size on Header (#4586)
This commit is contained in:
parent
fe04faac64
commit
2d68faff3f
|
@ -7,6 +7,7 @@ import { MarkdownPreview } from '../markdown';
|
||||||
import RoomTypeIcon from '../RoomTypeIcon';
|
import RoomTypeIcon from '../RoomTypeIcon';
|
||||||
import { TUserStatus, IOmnichannelSource } from '../../definitions';
|
import { TUserStatus, IOmnichannelSource } from '../../definitions';
|
||||||
import { useTheme } from '../../theme';
|
import { useTheme } from '../../theme';
|
||||||
|
import { useAppSelector } from '../../lib/hooks';
|
||||||
|
|
||||||
const HIT_SLOP = {
|
const HIT_SLOP = {
|
||||||
top: 5,
|
top: 5,
|
||||||
|
@ -141,8 +142,9 @@ const Header = React.memo(
|
||||||
const { colors } = useTheme();
|
const { colors } = useTheme();
|
||||||
const portrait = height > width;
|
const portrait = height > width;
|
||||||
let scale = 1;
|
let scale = 1;
|
||||||
|
const isMasterDetail = useAppSelector(state => state.app.isMasterDetail);
|
||||||
|
|
||||||
if (!portrait && !tmid) {
|
if (!portrait && !tmid && !isMasterDetail) {
|
||||||
if (usersTyping.length > 0 || subtitle) {
|
if (usersTyping.length > 0 || subtitle) {
|
||||||
scale = 0.8;
|
scale = 0.8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue