Updated on 2026-08-14

This commit is contained in:
Tangem 2024-02-13 18:00:34 +03:00
parent ed8419b45b
commit b97ddcb3f2
17 changed files with 379 additions and 147 deletions

View file

@ -126,7 +126,7 @@ private fun CustomContainer(state: TokenItemState, modifier: Modifier = Modifier
Layout(content = content, modifier = modifier) { measurables, constraints ->
val layoutWidth = constraints.maxWidth
val horizontalPadding = with(density) { dimens.size14.roundToPx() }
val horizontalPadding = with(density) { dimens.size12.roundToPx() }
val verticalPadding = with(density) { dimens.size16.roundToPx() }
val layoutWidthWithoutPaddings = layoutWidth - 2 * horizontalPadding
@ -137,7 +137,7 @@ private fun CustomContainer(state: TokenItemState, modifier: Modifier = Modifier
/*
* Title width take the whole REMAINING space.
* If FiatAmount took the whole free space, then Title will has min width.
* If FiatAmount took the whole free space, then Title will have min width.
*/
val title: Placeable
@ -149,7 +149,7 @@ private fun CustomContainer(state: TokenItemState, modifier: Modifier = Modifier
/*
* PriceChange width take the whole REMAINING space.
* If CryptoAmount took the whole free space, then PriceChange will has min width.
* If CryptoAmount took the whole free space, then PriceChange will have min width.
*/
val priceChange: Placeable?

View file

@ -103,7 +103,7 @@ private fun TokenList(
)
val listContentPadding = PaddingValues(
top = TangemTheme.dimens.spacing12,
top = TangemTheme.dimens.spacing4,
bottom = TangemTheme.dimens.spacing92,
start = TangemTheme.dimens.spacing16,
end = TangemTheme.dimens.spacing16,
@ -245,7 +245,7 @@ private fun TopBar(
Row(
modifier = Modifier
.fillMaxWidth()
.heightIn(min = TangemTheme.dimens.size56),
.padding(bottom = TangemTheme.dimens.spacing8),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(TangemTheme.dimens.spacing8),
) {