Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
[#2037] fixed username text (#2639)
Browse files Browse the repository at this point in the history
* [#2037] fixed username text

* [#2037] fixed by detect

---------

Co-authored-by: alexey_nik <argonikulin@gmail.com>
  • Loading branch information
FielderNik and argonikulin authored Sep 17, 2023
1 parent 6014dd2 commit 2e9b782
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions screen-home/src/main/java/com/ivy/home/HomeHeader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand All @@ -26,6 +27,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.testTag
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.ivy.core.data.db.entity.TransactionType
import com.ivy.design.l0_system.UI
Expand Down Expand Up @@ -128,12 +130,15 @@ private fun HeaderStickyRow(
) {
Row(
modifier = Modifier
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
.fillMaxWidth()
.padding(horizontal = 24.dp),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.End,
) {
Spacer(Modifier.width(24.dp))

Box {
Box(
modifier = Modifier.weight(1f),
contentAlignment = Alignment.CenterStart,
) {
Text(
modifier = Modifier
.alpha(percentExpanded)
Expand All @@ -149,7 +154,9 @@ private fun HeaderStickyRow(
style = UI.typo.b1.style(
fontWeight = FontWeight.ExtraBold,
color = UI.colors.pureInverse
)
),
overflow = TextOverflow.Ellipsis,
maxLines = 1,
)

// Balance mini row
Expand All @@ -172,8 +179,6 @@ private fun HeaderStickyRow(
}
}

Spacer(Modifier.weight(1f))

IvyOutlinedButton(
modifier = Modifier.horizontalSwipeListener(
sensitivity = 75,
Expand All @@ -193,8 +198,6 @@ private fun HeaderStickyRow(
Spacer(Modifier.width(12.dp))

Spacer(Modifier.width(40.dp)) // settings menu button spacer

Spacer(Modifier.width(24.dp))
}
}

Expand Down

0 comments on commit 2e9b782

Please sign in to comment.