mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Hiding the buttons when the search is active
This commit is contained in:
committed by
Florian Renaud
parent
e6c7afd614
commit
a7d46513af
+2
-1
@@ -19,7 +19,6 @@ package io.element.android.features.createroom.root
|
|||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.size
|
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
import androidx.compose.material3.SearchBarDefaults
|
import androidx.compose.material3.SearchBarDefaults
|
||||||
import androidx.compose.material3.TextButton
|
import androidx.compose.material3.TextButton
|
||||||
@@ -76,6 +75,7 @@ fun CreateRoomRootScreen(
|
|||||||
active = isSearchActive,
|
active = isSearchActive,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!isSearchActive.value) {
|
||||||
TextButton(
|
TextButton(
|
||||||
modifier = Modifier.padding(start = 8.dp, top = 16.dp, end = 8.dp),
|
modifier = Modifier.padding(start = 8.dp, top = 16.dp, end = 8.dp),
|
||||||
onClick = { }) {
|
onClick = { }) {
|
||||||
@@ -102,6 +102,7 @@ fun CreateRoomRootScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
|
|||||||
Reference in New Issue
Block a user