mirror of
https://github.com/balzack/databag.git
synced 2025-05-05 07:55:15 +00:00
slight improvment on android back flicker
This commit is contained in:
parent
f5e48230ce
commit
9ae2c6b298
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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',
|
||||||
},
|
},
|
||||||
|
@ -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',
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user