From ad3d4f83fb712020a0a4cb8b0ec56bd5612f8d42 Mon Sep 17 00:00:00 2001 From: OneWay Date: Fri, 9 Oct 2026 13:03:59 +0800 Subject: [PATCH] fix(search): pad the bottom of the search history sheet --- .../java/com/example/research/ui/main/components/MainTopBar.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/example/research/ui/main/components/MainTopBar.kt b/app/src/main/java/com/example/research/ui/main/components/MainTopBar.kt index 2f642db..144b23c 100644 --- a/app/src/main/java/com/example/research/ui/main/components/MainTopBar.kt +++ b/app/src/main/java/com/example/research/ui/main/components/MainTopBar.kt @@ -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)