Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-09 17:04:30 +02:00
parent 42af9271ad
commit bc1e6acd0f
2 changed files with 19 additions and 3 deletions

View file

@ -85,6 +85,7 @@ fun Notification(
subtitle = config.subtitle,
subtitleColor = subtitleColor,
showArrowIcon = isEnabled && config.shouldShowArrowIcon,
hasCloseButton = config.onCloseClick != null,
)
}
}
@ -148,6 +149,7 @@ private fun MainContent(
titleColor: Color,
subtitleColor: Color,
showArrowIcon: Boolean,
hasCloseButton: Boolean,
) {
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(
@ -161,10 +163,24 @@ private fun MainContent(
SpacerW(width = TangemTheme.dimens.spacing10)
TextsBlock(title = title, titleColor = titleColor, subtitle = subtitle, subtitleColor = subtitleColor)
TextsBlock(
title = title,
titleColor = titleColor,
subtitle = subtitle,
subtitleColor = subtitleColor,
modifier = Modifier
.weight(1f, fill = false)
.then(
if (hasCloseButton && !showArrowIcon) {
Modifier.padding(end = TangemTheme.dimens.size32)
} else {
Modifier
},
),
)
if (showArrowIcon) {
SpacerWMax()
SpacerW(width = TangemTheme.dimens.spacing8)
Icon(
painter = painterResource(id = R.drawable.ic_chevron_right_24),