From 8c2de95e6c4d9be062965f22323df5217178569e Mon Sep 17 00:00:00 2001 From: Raja Jawahar Date: Wed, 18 Oct 2023 13:08:10 +0530 Subject: [PATCH 1/2] Minor fixes in Attachment Icon size and Snackbar --- .../tarkalabs/uicomponents/components/TUIAttachmentUpload.kt | 2 +- .../com/tarkalabs/uicomponents/components/TUISnackBar.kt | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUIAttachmentUpload.kt b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUIAttachmentUpload.kt index 1ae87eb3..15d0ebb1 100644 --- a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUIAttachmentUpload.kt +++ b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUIAttachmentUpload.kt @@ -98,7 +98,7 @@ object TUIAttachmentUpload { Box( contentAlignment = Alignment.Center, modifier = Modifier - .size(48.dp) + .size(40.dp) .testTag(tags.leadingIconTag) ) { Icon( diff --git a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt index 083c3973..26ab7404 100644 --- a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt +++ b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt @@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.defaultMinSize -import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape @@ -198,14 +197,12 @@ internal fun TUISnackBar( Box( modifier = modifier - .fillMaxWidth() .defaultMinSize(minHeight = 56.dp) .background(containerColor, shape = RoundedCornerShape(32.dp)) .padding(16.dp) ) { Row( modifier = Modifier - .fillMaxWidth() .testTag(tags.parentTag), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.Center, @@ -220,7 +217,7 @@ internal fun TUISnackBar( } Text( modifier = Modifier - .weight(1f) + .weight(1f, fill = false) .padding(start = 8.dp), text = message, color = textColor, From 21ee0214a76a5dd88dc187d38eef48d974bf5ed5 Mon Sep 17 00:00:00 2001 From: Raja Jawahar Date: Wed, 18 Oct 2023 13:15:28 +0530 Subject: [PATCH 2/2] Version updated to 0.51-alpha --- tarkaui/build.gradle.kts | 2 +- .../java/com/tarkalabs/uicomponents/components/TUISnackBar.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tarkaui/build.gradle.kts b/tarkaui/build.gradle.kts index 62e4ccb8..bfe8d837 100644 --- a/tarkaui/build.gradle.kts +++ b/tarkaui/build.gradle.kts @@ -66,7 +66,7 @@ publishing { run { groupId = "com.tarkalabs" artifactId = getLibraryArtifactId() - version = "0.50-alpha" + version = "0.51-alpha" artifact("$buildDir/outputs/aar/${getLibraryArtifactId()}-release.aar") } } diff --git a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt index 26ab7404..bba14918 100644 --- a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt +++ b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/TUISnackBar.kt @@ -263,7 +263,7 @@ enum class TUISnackBarType { @Composable fun TUIInformationSnackBarPreview() { TUISnackBar( - message = "Hello there", + message = "Hello there, How are doing ? ", actionLabel = "dgsd", leadingIcon = TarkaIcons.Regular.Delete24, type = Information