From 29623ec3893abad2dc4a0b036cb90d8f861024f2 Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Sat, 26 Sep 2026 00:52:53 -0400 Subject: [PATCH] Keep session desktop button label on one line --- .../java/com/droiddeck/launcher/ui/SessionOverlay.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt b/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt index f15d0cc49..b04091f9c 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/SessionOverlay.kt @@ -342,10 +342,11 @@ fun SessionDrawer(open: Boolean, page: Int, controllerActive: Boolean, onPageCha a.onSteamMenu.invoke() }, shape = RoundedCornerShape(12.dp), + contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp), border = BorderStroke(if (steamHot) 2.dp else 1.dp, if (steamHot) pal.signal else colors.outline), colors = ButtonDefaults.outlinedButtonColors(containerColor = if (steamHot) pal.signal.copy(alpha = 0.16f) else Color.Transparent), ) { - Text("STEAM", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp) + Text("STEAM", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp, maxLines = 1) } OutlinedButton( onClick = { @@ -360,10 +361,11 @@ fun SessionDrawer(open: Boolean, page: Int, controllerActive: Boolean, onPageCha a.onQam.invoke() }, shape = RoundedCornerShape(12.dp), + contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp), border = BorderStroke(if (qamHot) 2.dp else 1.dp, if (qamHot) pal.signal else colors.outline), colors = ButtonDefaults.outlinedButtonColors(containerColor = if (qamHot) pal.signal.copy(alpha = 0.16f) else Color.Transparent), ) { - Text("QAM", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp) + Text("QAM", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp, maxLines = 1) } // Big Picture's own "Switch to Desktop" waits on SteamOS Manager for ever // here; this does the switch without the client. @@ -379,10 +381,11 @@ fun SessionDrawer(open: Boolean, page: Int, controllerActive: Boolean, onPageCha a.onSwitchToDesktop.invoke() }, shape = RoundedCornerShape(12.dp), + contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp), border = BorderStroke(if (deskHot) 2.dp else 1.dp, if (deskHot) pal.signal else colors.outline), colors = ButtonDefaults.outlinedButtonColors(containerColor = if (deskHot) pal.signal.copy(alpha = 0.16f) else Color.Transparent), ) { - Text("DESKTOP", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp) + Text("DESKTOP", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 0.5.sp, maxLines = 1) } } } @@ -681,4 +684,3 @@ private const val DRAWER_TAB_SPACING_DP = 64f private const val DRAWER_TAB_LEAN_DP = 12f private const val DRAWER_TAB_SIDE_SCALE = 0.5f private const val DRAWER_TAB_SIDE_ALPHA = 0.7f -