Quellcode durchsuchen

fix: 修复按钮组第二个按钮被挤出及管理界面底部 padding 不足

HapeLee vor 4 Monaten
Ursprung
Commit
200632c9e4

+ 3 - 1
app/src/main/java/io/legado/app/ui/widget/components/explore/ExploreKindMultiTypeItem.kt

@@ -73,7 +73,9 @@ fun ExploreKindMultiTypeItem(
 
 
     val BaseItem = @Composable { text: String, click: () -> Unit ->
     val BaseItem = @Composable { text: String, click: () -> Unit ->
         if (content != null) {
         if (content != null) {
-            content(text, isSelected, click, trailingIcon)
+            Box(modifier = modifier) {
+                content(text, isSelected, click, trailingIcon)
+            }
         } else {
         } else {
             ExploreKindItem(
             ExploreKindItem(
                 kind = kind,
                 kind = kind,

+ 1 - 1
app/src/main/java/io/legado/app/ui/widget/components/modalBottomSheet/AppModalBottomSheet.kt

@@ -123,7 +123,7 @@ fun AppModalBottomSheet(
                     Column(
                     Column(
                         modifier = Modifier
                         modifier = Modifier
                             .fillMaxWidth()
                             .fillMaxWidth()
-                            .padding(start = 16.dp, end = 16.dp, bottom = 0.dp)
+                            .padding(start = 16.dp, end = 16.dp, bottom = 16.dp)
                             .heightIn(max = maxHeight)
                             .heightIn(max = maxHeight)
                             .animateContentSize()
                             .animateContentSize()
                             .then(modifier)
                             .then(modifier)