fix(search): pad the bottom of the search history sheet
This commit is contained in:
1 parent
4e75c7d865
commit
ad3d4f83fb
1 file changed
+3
@@ -2,6 +2,7 @@ package com.example.research.ui.main.components
|
||||
|
||||
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
@@ -72,6 +73,7 @@ private val TopBarHeight = Spacing.topBarHeight
|
||||
private val TopBarShape = RoundedCornerShape(28.dp)
|
||||
private val HistorySheetChrome = 64.dp
|
||||
private val HistorySheetMinHeight = 300.dp
|
||||
private val HistorySheetBottomPadding = 16.dp
|
||||
|
||||
@Composable
|
||||
fun MainTopBar(
|
||||
@@ -314,6 +316,7 @@ private fun SearchHistorySheet(
|
||||
onEntryClick = onEntryClick,
|
||||
onEntryRemove = onEntryRemove,
|
||||
onClearAll = onClearAll,
|
||||
contentPadding = PaddingValues(bottom = HistorySheetBottomPadding),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(min = HistorySheetMinHeight, max = maxContentHeight)
|
||||
|
||||
Reference in new issue
Block a user