Do not show "Search" button in OnlineSearchTab
This commit is contained in:
@@ -138,18 +138,18 @@ fun OnlineSearchTab(
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
actionsContent = {
|
actionsContent = {
|
||||||
BasicText(
|
if (isOpenableUrl) {
|
||||||
text = if (isOpenableUrl) "Open url" else "Search",
|
BasicText(
|
||||||
style = typography.xxs.medium,
|
text = "Open url",
|
||||||
modifier = Modifier
|
style = typography.xxs.medium,
|
||||||
.clip(RoundedCornerShape(16.dp))
|
modifier = Modifier
|
||||||
.clickable(enabled = textFieldValue.text.isNotEmpty()) {
|
.clip(RoundedCornerShape(16.dp))
|
||||||
if (isOpenableUrl) onUri() else onSearch(textFieldValue.text)
|
.clickable(onClick = onUri)
|
||||||
}
|
.background(colorPalette.background2)
|
||||||
.background(colorPalette.background2)
|
.padding(all = 8.dp)
|
||||||
.padding(all = 8.dp)
|
.padding(horizontal = 8.dp)
|
||||||
.padding(horizontal = 8.dp)
|
)
|
||||||
)
|
}
|
||||||
|
|
||||||
Spacer(
|
Spacer(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user