Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
4be1e965f2
commit
dadcc3e588
2 files changed
+6
-3
No files matched your search
@@ -820,6 +820,10 @@ private fun ProviderCard(
|
||||
} else {
|
||||
MaterialTheme.colorScheme.onSurface
|
||||
},
|
||||
// Weight + wrap: a long model name grows
|
||||
// the row vertically instead of pushing
|
||||
// the check/pin buttons off-screen.
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
|
||||
@@ -34,7 +34,6 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.m57.hermescontrol.R
|
||||
import com.m57.hermescontrol.data.model.ModelProvider
|
||||
@@ -273,8 +272,8 @@ private fun ModelItemCard(
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
fontWeight = FontWeight.Medium,
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
// No maxLines/ellipsis: a long model name wraps so the full
|
||||
// name stays readable while the pin button keeps its spot.
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
if (onPinToggle != null) {
|
||||
|
||||
Reference in new issue
Block a user