mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-11 00:12:24 +01:00
home: the player sits flush against the map, no gap between them
This commit is contained in:
1 parent
d78585fda1
commit
08ce09ad61
1 file changed
+2
-6
@@ -94,12 +94,8 @@ fun CarHome() {
|
|||||||
}
|
}
|
||||||
val splitScreen = phase == CarMedia.Phase.READY && now.isActive && panel != SidePanel.NONE
|
val splitScreen = phase == CarMedia.Phase.READY && now.isActive && panel != SidePanel.NONE
|
||||||
|
|
||||||
// No outer padding on any side, split screen or not - only the gap between the two panes
|
// No padding anywhere, split screen or not: the player sits flush against the map.
|
||||||
// when the player is sharing the screen with the map.
|
Row(Modifier.fillMaxSize()) {
|
||||||
Row(
|
|
||||||
Modifier.fillMaxSize(),
|
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
|
||||||
) {
|
|
||||||
Box(
|
Box(
|
||||||
Modifier
|
Modifier
|
||||||
.weight(if (splitScreen) 2.1f else 1f)
|
.weight(if (splitScreen) 2.1f else 1f)
|
||||||
|
|||||||
Reference in new issue
Block a user