Skip to content

Commit

Permalink
fix: improve dates chip deisgn
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-arshad-dev committed Nov 7, 2023
1 parent 9709ea8 commit dc6c082
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.em
import androidx.compose.ui.unit.sp
import androidx.compose.ui.zIndex
import androidx.core.os.bundleOf
Expand Down Expand Up @@ -487,7 +486,7 @@ private fun PlaceDateBadge(title: String, titleSize: TextUnit, blockBadge: Cours
padding = RoundedCornerSpanPainter.TextPaddingValues(
horizontal = 8.sp,
vertical = 6.sp
), topMargin = 4.sp,
), topMargin = 5.sp,
bottomMargin = 4.sp,
stroke = RoundedCornerSpanPainter.Stroke(
color = badgeStrokeColor
Expand Down Expand Up @@ -521,9 +520,9 @@ private fun PlaceDateBadge(title: String, titleSize: TextUnit, blockBadge: Cours
badgeIcon?.let {
inlineContent["icon_id"] = InlineTextContent(
Placeholder(
width = 18.sp,
height = 18.sp,
placeholderVerticalAlign = PlaceholderVerticalAlign.TextCenter
width = 16.sp,
height = 16.sp,
placeholderVerticalAlign = PlaceholderVerticalAlign.Center
)
) {
Icon(badgeIcon, "", tint = MaterialTheme.appColors.datesBadgeTextDue)
Expand All @@ -540,7 +539,7 @@ private fun PlaceDateBadge(title: String, titleSize: TextUnit, blockBadge: Cours
inlineContent = inlineContent,
fontSize = titleSize,
fontWeight = FontWeight.SemiBold,
lineHeight = 1.25.em
lineHeight = 22.sp
)
}

Expand All @@ -560,15 +559,15 @@ private fun CourseDateItem(courseDateItem: CourseDateBlock, parentBadgeAdded: Bo
text = courseDateItem.title,
fontSize = 16.sp,
fontWeight = FontWeight.SemiBold,
lineHeight = 1.25.em,
lineHeight = 20.sp
)
}
if (!TextUtils.isEmpty(courseDateItem.description)) {
Text(
text = courseDateItem.description,
fontSize = 14.sp,
fontWeight = FontWeight.SemiBold,
lineHeight = 1.25.em,
lineHeight = 18.sp
)
}
}
Expand Down

0 comments on commit dc6c082

Please sign in to comment.