mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
PC keyboard: shorter rows, so the program stays visible above it
This commit is contained in:
1 parent
a6bab67508
commit
1d71e8c74d
1 file changed
+2
-1
@@ -152,7 +152,8 @@ fun PcKeyboard(
|
||||
.pointerInput(Unit) { awaitEachGesture { awaitFirstDown().consume(); waitForUpOrCancellation()?.consume() } }
|
||||
.padding(horizontal = 8.dp, vertical = 6.dp),
|
||||
) {
|
||||
val rowHeight = (maxWidth / 17f).coerceIn(34.dp, 56.dp)
|
||||
// About half the screen on a phone-shaped panel: the program stays visible above it.
|
||||
val rowHeight = (maxWidth / 26f).coerceIn(30.dp, 44.dp)
|
||||
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth().height(28.dp)) {
|
||||
Text("PC keyboard", fontSize = 12.sp, fontWeight = FontWeight.SemiBold, color = colors.onSurfaceVariant)
|
||||
|
||||
Reference in new issue
Block a user