Improve refreshIndicator feed name display
This commit is contained in:
parent
0a1574df0d
commit
cbeea6ca0d
@ -1,12 +1,16 @@
|
||||
package com.readrops.app.compose.util.components
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.LinearProgressIndicator
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import com.readrops.app.compose.util.theme.VeryShortSpacer
|
||||
import com.readrops.app.compose.util.theme.spacing
|
||||
|
||||
@Composable
|
||||
fun RefreshScreen(
|
||||
@ -31,7 +35,7 @@ fun RefreshIndicator(
|
||||
) {
|
||||
Column(
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
modifier = Modifier.padding(MaterialTheme.spacing.mediumSpacing)
|
||||
) {
|
||||
LinearProgressIndicator(
|
||||
progress = { feedCount.toFloat() / feedMax.toFloat() }
|
||||
@ -41,7 +45,8 @@ fun RefreshIndicator(
|
||||
|
||||
Text(
|
||||
text = "$currentFeed ($feedCount/$feedMax)",
|
||||
maxLines = 1
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user