mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
increase default category size and better handle text overflow (#385)
This commit is contained in:
parent
c3ed0dd541
commit
ddec1f383f
@ -17,7 +17,7 @@ import org.koin.core.component.inject
|
||||
data class HomePageStateToPersist(
|
||||
val downloadListState: TableState.SerializableTableState? = null,
|
||||
val windowSize: Pair<Float, Float> = 1000f to 500f,
|
||||
val categoriesWidth: Float = 170f,
|
||||
val categoriesWidth: Float = 185f,
|
||||
) {
|
||||
class ConfigLens(prefix: String) : Lens<MapConfig, HomePageStateToPersist>,
|
||||
KoinComponent {
|
||||
|
@ -24,6 +24,7 @@ import androidx.compose.ui.draw.rotate
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.input.pointer.PointerButton
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.abdownloadmanager.shared.utils.ui.myColors
|
||||
import com.abdownloadmanager.shared.utils.div
|
||||
@ -120,6 +121,7 @@ private fun CategoryFilterItem(
|
||||
category.name,
|
||||
Modifier.weight(1f),
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Normal,
|
||||
fontSize = myTextSizes.base
|
||||
)
|
||||
@ -209,6 +211,7 @@ fun StatusFilterItem(
|
||||
Modifier.weight(1f),
|
||||
fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Normal,
|
||||
fontSize = myTextSizes.lg,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
maxLines = 1,
|
||||
)
|
||||
MyIcon(
|
||||
|
Loading…
x
Reference in New Issue
Block a user