Skip to content

Commit 92d8af8

Browse files
committed
Make sure preview contains the two themes.
1 parent bc409b2 commit 92d8af8

File tree

1 file changed

+2
-0
lines changed
  • libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components

1 file changed

+2
-0
lines changed

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/SearchBar.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import androidx.compose.foundation.layout.ColumnScope
1313
import androidx.compose.foundation.layout.Spacer
1414
import androidx.compose.foundation.layout.WindowInsets
1515
import androidx.compose.foundation.layout.fillMaxWidth
16+
import androidx.compose.foundation.layout.heightIn
1617
import androidx.compose.foundation.layout.padding
1718
import androidx.compose.foundation.layout.size
1819
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -299,6 +300,7 @@ private fun ContentToPreview(
299300
resultHandler: @Composable ColumnScope.(String) -> Unit = {},
300301
) {
301302
SearchBar(
303+
modifier = Modifier.heightIn(max = 200.dp),
302304
query = query,
303305
active = active,
304306
resultState = resultState,

0 commit comments

Comments
 (0)