Skip to content

Commit

Permalink
fix: adjust tuning note position on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed Sep 9, 2021
1 parent d833301 commit 3f01f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fun TuningNote(
) =
ConstraintLayout(modifier = modifier) {
val (toneRef, semitoneRef, octaveRef, frequencyRef) = createRefs()
val horizontalGuideline = createGuidelineFromStart(.40f)

Text(
text = tone,
Expand All @@ -47,6 +48,7 @@ fun TuningNote(
fontWeight = FontWeight.Bold,
modifier = Modifier.constrainAs(toneRef) {
centerVerticallyTo(parent)
centerAround(horizontalGuideline)
}
)
if (accidental != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class TunerScreen(
advancedMode = settings.advancedMode,
modifier = Modifier.constrainAs(noteRef) {
centerHorizontallyTo(parent)
top.linkTo(parent.top)
bottom.linkTo(deviationBarsRef.top)
}
)
Expand Down

0 comments on commit 3f01f36

Please sign in to comment.