Skip to content

Commit

Permalink
Merge pull request #130 from tarkalabs/nilesh/tuiSearchBar/changes
Browse files Browse the repository at this point in the history
- Fixed TUITopBar height issue
  • Loading branch information
rajajawahar authored Oct 6, 2023
2 parents 9b97869 + bc07d3c commit f92996c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tarkaui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ publishing {
run {
groupId = "com.tarkalabs"
artifactId = getLibraryArtifactId()
version = "0.49-alpha"
version = "0.50-alpha"
artifact("$buildDir/outputs/aar/${getLibraryArtifactId()}-release.aar")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material3.Divider
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
Expand Down Expand Up @@ -109,15 +109,14 @@ import com.tarkalabs.uicomponents.theme.TUITheme
modifier = modifier
.background(color = TUITheme.colors.surface)
.fillMaxWidth()
.wrapContentSize(),
.wrapContentHeight(),
horizontalAlignment = Alignment.CenterHorizontally
) {
if (showSearchBar) {
TUISearchBar(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)
,
.padding(start = 16.dp, end = 16.dp, bottom = 8.dp),
query = query,
placeholder = searchQueryHint,
leadingIcon = TarkaIcons.Regular.ChevronLeft24,
Expand Down Expand Up @@ -205,8 +204,7 @@ import com.tarkalabs.uicomponents.theme.TUITheme
scrollBehavior = scrollBehavior,
)
}

Divider(modifier = Modifier.padding(top = 8.dp), color = TUITheme.colors.surfaceVariant)
Divider(modifier = Modifier.fillMaxWidth(), color = TUITheme.colors.surfaceVariant)
}
}

Expand Down

0 comments on commit f92996c

Please sign in to comment.