[FIX] Style not being applied on RoomsListView header subtitle (#2319)
This commit is contained in:
parent
9dbe10bcf8
commit
7a5a92f33f
|
@ -41,7 +41,7 @@ const Header = React.memo(({
|
||||||
const { isLandscape } = useOrientation();
|
const { isLandscape } = useOrientation();
|
||||||
const scale = isIOS && isLandscape && !isTablet ? 0.8 : 1;
|
const scale = isIOS && isLandscape && !isTablet ? 0.8 : 1;
|
||||||
const titleFontSize = 16 * scale;
|
const titleFontSize = 16 * scale;
|
||||||
const subTitleFontSize = 12 * scale;
|
const subTitleFontSize = 14 * scale;
|
||||||
|
|
||||||
if (showSearchHeader) {
|
if (showSearchHeader) {
|
||||||
return (
|
return (
|
||||||
|
@ -78,11 +78,11 @@ const Header = React.memo(({
|
||||||
<CustomIcon
|
<CustomIcon
|
||||||
name='chevron-down'
|
name='chevron-down'
|
||||||
color={themes[theme].headerTintColor}
|
color={themes[theme].headerTintColor}
|
||||||
style={[showServerDropdown && styles.upsideDown, { fontSize: subTitleFontSize }]}
|
style={[showServerDropdown && styles.upsideDown]}
|
||||||
size={18}
|
size={18}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
{subtitle ? <Text style={[styles.subtitle, { color: themes[theme].auxiliaryText }]} numberOfLines={1}>{subtitle}</Text> : null}
|
{subtitle ? <Text style={[styles.subtitle, { color: themes[theme].auxiliaryText, fontSize: subTitleFontSize }]} numberOfLines={1}>{subtitle}</Text> : null}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue