mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 01:55:17 +00:00
styling for ipad
This commit is contained in:
parent
b88242fed2
commit
69a19cf8fe
@ -53,6 +53,13 @@ export const styles = StyleSheet.create({
|
||||
height: '100%',
|
||||
borderRadius: 8,
|
||||
},
|
||||
canvas: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
},
|
||||
frame: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@ -95,7 +102,6 @@ export const styles = StyleSheet.create({
|
||||
height: '20%',
|
||||
},
|
||||
full: {
|
||||
position: 'absolute',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
},
|
||||
|
@ -197,7 +197,7 @@ export function Calling({ callCard }: { callCard: string }) {
|
||||
)}
|
||||
{ state.calling && (
|
||||
<View style={{ ...styles.container, backgroundColor: surface.base }}>
|
||||
<View style={{ ...styles.frame, top: frameOffset, width: frameWidth, height: frameHeight }}>
|
||||
<View style={{ ...styles.frame, top: frameOffset, width: frameWidth > 400 ? 400 : frameWidth, height: frameHeight > 400 ? 400 : frameHeight }}>
|
||||
<Image
|
||||
style={{ ...styles.image, opacity: state.loaded ? 1 : 0 }}
|
||||
resizeMode="contain"
|
||||
@ -232,20 +232,24 @@ export function Calling({ callCard }: { callCard: string }) {
|
||||
</View>
|
||||
)}
|
||||
{ state.calling && state.loaded && state.remote && (
|
||||
<View style={{ ...styles.canvas, backgroundColor: surface.base }}>
|
||||
<RTCView
|
||||
style={styles.full}
|
||||
mirror={true}
|
||||
objectFit={'contain'}
|
||||
streamURL={state.remote.toURL()}
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
{ state.calling && state.loaded && state.local && !state.remote && (
|
||||
<View style={{ ...styles.canvas, backgroundColor: surface.base }}>
|
||||
<RTCView
|
||||
style={styles.full}
|
||||
mirror={true}
|
||||
objectFit={'contain'}
|
||||
streamURL={state.local.toURL()}
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
{ state.calling && state.loaded && state.local && state.remote && (
|
||||
<RTCView
|
||||
|
Loading…
x
Reference in New Issue
Block a user