refactor(app): move the skip button to the PlayerControlsOverlay panel

This commit is contained in:
2026-05-02 11:52:36 +02:00
parent 185a0c8a85
commit 9610124af0

View File

@@ -174,26 +174,6 @@ private fun BottomSection(
) {
val scheme = MaterialTheme.colorScheme
Column(modifier = modifier) {
if (uiState.activeSkippableSegmentEndMs != null) {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 8.dp),
horizontalArrangement = Arrangement.End
) {
PurefinTextButton(
onClick = onSkipSegment,
modifier = Modifier.padding(8.dp)
) {
Text(
text = "Skip",
fontSize = 20.sp,
fontWeight = FontWeight.ExtraBold
)
}
}
Spacer(modifier = Modifier.height(6.dp))
}
Row(
modifier = Modifier
.fillMaxWidth()
@@ -279,7 +259,7 @@ private fun BottomSection(
)
}
Row(
modifier = Modifier.align(Alignment.CenterEnd),
modifier = Modifier.align(Alignment.CenterStart),
horizontalArrangement = Arrangement.spacedBy(8.dp),
verticalAlignment = Alignment.CenterVertically
) {
@@ -302,6 +282,24 @@ private fun BottomSection(
overlayController = overlayController
)
}
if (uiState.activeSkippableSegmentEndMs != null) {
Row(
modifier = Modifier.align(Alignment.CenterEnd),
horizontalArrangement = Arrangement.spacedBy(8.dp),
verticalAlignment = Alignment.CenterVertically
) {
PurefinTextButton(
onClick = onSkipSegment,
modifier = Modifier.padding(8.dp)
) {
Text(
text = "Skip",
fontSize = 20.sp,
fontWeight = FontWeight.ExtraBold
)
}
}
}
}
Spacer(modifier = Modifier.height(12.dp))
}