Skip to content

Commit

Permalink
fix(ui): banner height
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashinch committed Jun 28, 2024
1 parent c8bed64 commit 98fe947
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions app/src/main/java/me/ash/reader/ui/component/base/Banner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,21 @@ import android.view.SoundEffectConstants
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.material3.Icon
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Alignment
Expand All @@ -24,7 +36,6 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import me.ash.reader.ui.theme.palette.alwaysLight
Expand All @@ -44,7 +55,7 @@ fun Banner(
Surface(
modifier = modifier
.fillMaxWidth()
.height(Dp.Unspecified),
.heightIn(min = 88.dp),
color = Color.Unspecified,
) {
Row(
Expand All @@ -57,7 +68,7 @@ fun Banner(
view.playSoundEffect(SoundEffectConstants.CLICK)
onClick()
}
.padding(16.dp, 15.dp),
.padding(16.dp, 20.dp),
verticalAlignment = Alignment.CenterVertically
) {
icon?.let { icon ->
Expand Down

0 comments on commit 98fe947

Please sign in to comment.