From 1e8c0dfd3999e579fb89e5d9beb93b2ed7d83997 Mon Sep 17 00:00:00 2001 From: easyhz Date: Sat, 20 Jul 2024 18:28:38 +0900 Subject: [PATCH] fix: banner ui #27 --- .../core/design_system/component/banner/Banner.kt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/core/design-system/src/main/java/com/easyhz/noffice/core/design_system/component/banner/Banner.kt b/core/design-system/src/main/java/com/easyhz/noffice/core/design_system/component/banner/Banner.kt index 7a345302..518dc6a1 100644 --- a/core/design-system/src/main/java/com/easyhz/noffice/core/design_system/component/banner/Banner.kt +++ b/core/design-system/src/main/java/com/easyhz/noffice/core/design_system/component/banner/Banner.kt @@ -1,6 +1,5 @@ package com.easyhz.noffice.core.design_system.component.banner -import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxWidth @@ -12,8 +11,6 @@ import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Brush -import androidx.compose.ui.layout.ContentScale -import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.ParagraphStyle import androidx.compose.ui.text.buildAnnotatedString @@ -58,24 +55,16 @@ fun Banner( Box( modifier = modifier .fillMaxWidth() - .heightIn(min = 180.dp) + .heightIn(min = 108.dp) .background( brush = Brush.verticalGradient(listOf(White, Green100)), ) ) { - Image( - modifier = Modifier - .fillMaxWidth() - .align(Alignment.BottomStart), - painter = painterResource(id = R.drawable.ic_banner), - contentDescription = "banner", - contentScale = ContentScale.Crop - ) Text(text = annotatedString, modifier = Modifier .align(Alignment.BottomStart) .screenHorizonPadding() - .padding(bottom = 20.dp) + .padding(bottom = 8.dp) ) } }