slight improvment on android back flicker

This commit is contained in:
Roland Osborne 2025-01-16 13:34:19 -08:00
parent f5e48230ce
commit 9ae2c6b298
5 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@ export function Content({openConversation, textCard}: {openConversation: ()=>voi
actions.setFocus(item.cardId, item.channelId); actions.setFocus(item.cardId, item.channelId);
openConversation(); openConversation();
}; };
const Wrap = focused ? Surface : View; const Wrap = (state.layout === 'large' && focused) ? Surface : View;
return ( return (
<Wrap elevation={1}> <Wrap elevation={1}>
<Channel <Channel

View File

@ -4,7 +4,7 @@ export const styles = StyleSheet.create({
identity: { identity: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'flex-begin', alignItems: 'flex-start',
}, },
identityData: { identityData: {
flexGrow: 1, flexGrow: 1,

View File

@ -48,7 +48,7 @@ export const styles = StyleSheet.create({
content: { content: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'flexStart', alignItems: 'flex-start',
width: '100%', width: '100%',
paddingLeft: 8, paddingLeft: 8,
paddingRight: 8, paddingRight: 8,
@ -69,7 +69,7 @@ export const styles = StyleSheet.create({
header: { header: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'flexStart', alignItems: 'flex-start',
width: '100%', width: '100%',
lineHeight: 16, lineHeight: 16,
gap: 16, gap: 16,

View File

@ -106,7 +106,7 @@ export const styles = StyleSheet.create({
flexShrink: 0, flexShrink: 0,
width: 32, width: 32,
display: 'flex', display: 'flex',
justifyContent: 'flex-begin', justifyContent: 'flex-start',
height: '100%', height: '100%',
backgroundColor: 'transparent', backgroundColor: 'transparent',
}, },

View File

@ -216,7 +216,7 @@ export const styles = StyleSheet.create({
flexShrink: 0, flexShrink: 0,
width: 32, width: 32,
display: 'flex', display: 'flex',
justifyContent: 'flex-begin', justifyContent: 'flex-start',
height: '100%', height: '100%',
backgroundColor: 'transparent', backgroundColor: 'transparent',
}, },