diff --git a/core/ui/src/main/java/com/tangem/core/ui/components/notifications/Notification.kt b/core/ui/src/main/java/com/tangem/core/ui/components/notifications/Notification.kt index 6de247399b..20bb9fce3b 100644 --- a/core/ui/src/main/java/com/tangem/core/ui/components/notifications/Notification.kt +++ b/core/ui/src/main/java/com/tangem/core/ui/components/notifications/Notification.kt @@ -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), diff --git a/gradle/tangem_dependencies.toml b/gradle/tangem_dependencies.toml index 6c17617aca..a9fd333a5d 100644 --- a/gradle/tangem_dependencies.toml +++ b/gradle/tangem_dependencies.toml @@ -5,7 +5,7 @@ # https://github.com/tangem/tangem-sdk-android/ # https://github.com/tangem/vico -tangemBlockchainSdk = "releases-5.30-1262" +tangemBlockchainSdk = "releases-5.30-1264" #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds tangemCardSdk = "releases-5.30-567" #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^