Skip to content

Commit

Permalink
fix: add LinkedCoordinates placeholder when position is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Mar 19, 2024
1 parent cff4f02 commit ded6aae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/geeksville/mesh/ui/LinkedCoordinates.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.geeksville.mesh.ui

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.text.ClickableText
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -58,6 +59,9 @@ fun LinkedCoordinates(
}
}
)
} else {
// Placeholder for ConstraintLayoutReference; renders no visible content
Box(modifier = modifier)
}
}

Expand Down

2 comments on commit ded6aae

@daviscodesbugs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting to this; I noticed the same layout issue and was going to get back to it

@andrekir
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem! feel free to make any changes if there is a better approach.

Please sign in to comment.