mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
ui: hold the offline strip to the 48dp touch target
Keep the strip's own tint and the clickable row, but give it the standard minimum interactive height now that the Surface is no longer padding it invisibly.
This commit is contained in:
@@ -17,6 +17,7 @@ import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.heightIn
|
||||
import androidx.compose.foundation.layout.offset
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
@@ -1025,6 +1026,7 @@ private fun OfflineStrip(
|
||||
modifier
|
||||
.fillMaxWidth()
|
||||
.background(lerp(headerColor, MaterialTheme.colorScheme.primary, OFFLINE_STRIP_TINT))
|
||||
.heightIn(min = 48.dp)
|
||||
.clickable(role = Role.Button, onClick = onGoOnline)
|
||||
.padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
|
||||
Reference in New Issue
Block a user