fix: text displays when large system font
This commit is contained in:
parent
7bfd654f2b
commit
a18676467a
3 changed files with 10 additions and 8 deletions
|
|
@ -9,6 +9,7 @@ import androidx.compose.ui.Modifier
|
|||
import androidx.compose.ui.platform.LocalUriHandler
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.aliucord.manager.BuildConfig
|
||||
|
|
@ -40,7 +41,8 @@ fun ProjectHeader(modifier: Modifier = Modifier) {
|
|||
text = stringResource(R.string.app_description),
|
||||
style = MaterialTheme.typography.titleSmall.copy(
|
||||
color = MaterialTheme.colorScheme.onSurface.copy(alpha = .6f)
|
||||
)
|
||||
),
|
||||
textAlign = TextAlign.Center,
|
||||
)
|
||||
|
||||
Row(
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
package com.aliucord.manager.ui.screens.patching.components
|
||||
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.*
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.runtime.*
|
||||
|
|
@ -73,9 +72,12 @@ fun StepGroupCard(
|
|||
size = 24.dp,
|
||||
)
|
||||
|
||||
Text(text = name)
|
||||
|
||||
Spacer(modifier = Modifier.weight(1f))
|
||||
Text(
|
||||
text = name,
|
||||
modifier = Modifier
|
||||
.basicMarquee()
|
||||
.weight(0.05f),
|
||||
)
|
||||
|
||||
TimeElapsed(
|
||||
enabled = groupState.isFinished,
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ class ArrangementLastAtBottom(
|
|||
lastSpace = min(spacingPx, totalSize - outPositions[index] - size)
|
||||
occupied = outPositions[index] + size + lastSpace
|
||||
}
|
||||
|
||||
occupied -= lastSpace
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue