refactor: remove unused border from ContinueWatching settings

This commit is contained in:
tapframe 2026-05-29 02:30:16 +05:30
parent aee1453a66
commit 3473972345
2 changed files with 0 additions and 28 deletions

View file

@ -1,6 +1,5 @@
package com.nuvio.app.features.home.components
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
@ -314,27 +313,11 @@ fun ContinueWatchingStylePreview(
} else {
MaterialTheme.colorScheme.surface
}
val previewBorder = if (style == ContinueWatchingSectionStyle.Wide) {
BorderStroke(
1.dp,
if (isSelected) MaterialTheme.colorScheme.primary
else MaterialTheme.colorScheme.outlineVariant.copy(alpha = 0.55f),
)
} else {
null
}
Column(
modifier = modifier
.clip(RoundedCornerShape(12.dp))
.background(backgroundColor)
.then(
if (previewBorder != null) {
Modifier.border(previewBorder, RoundedCornerShape(12.dp))
} else {
Modifier
},
)
.padding(horizontal = 12.dp, vertical = 16.dp),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center,

View file

@ -230,16 +230,6 @@ private fun ContinueWatchingStyleOption(
isTablet: Boolean,
onClick: () -> Unit,
) {
val optionBorder = if (style == ContinueWatchingSectionStyle.Wide) {
androidx.compose.foundation.BorderStroke(
1.dp,
if (selected) MaterialTheme.colorScheme.primary
else MaterialTheme.colorScheme.outlineVariant,
)
} else {
null
}
Surface(
modifier = Modifier
.fillMaxWidth()
@ -250,7 +240,6 @@ private fun ContinueWatchingStyleOption(
MaterialTheme.colorScheme.surface
},
shape = RoundedCornerShape(12.dp),
border = optionBorder,
) {
Column(
modifier = Modifier