detail: wrap action row with FlowRow so Save doesnt clip on narrow widths
This commit is contained in:
parent
1be4c4265f
commit
3ff9740c40
1 changed files with 7 additions and 1 deletions
|
|
@ -10,6 +10,8 @@ import androidx.compose.foundation.clickable
|
|||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||
import androidx.compose.foundation.layout.FlowRow
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.aspectRatio
|
||||
|
|
@ -75,6 +77,7 @@ import com.sulkta.straw.util.formatCount
|
|||
import com.sulkta.straw.util.formatViews
|
||||
import com.sulkta.straw.util.stripHtml
|
||||
|
||||
@OptIn(ExperimentalLayoutApi::class)
|
||||
@Composable
|
||||
fun VideoDetailScreen(
|
||||
streamUrl: String,
|
||||
|
|
@ -218,7 +221,10 @@ fun VideoDetailScreen(
|
|||
}
|
||||
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(12.dp)) {
|
||||
FlowRow(
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
Button(onClick = { onPlay(inlinePositionMs) }) { Text("Play") }
|
||||
OutlinedButton(onClick = {
|
||||
val send = Intent(Intent.ACTION_SEND).apply {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue