Milan Jurkulak 3 лет назад
Родитель
Сommit
0fc6c7d938

+ 2 - 2
app/src/main/kotlin/org/mjdev/tvapp/base/ui/components/badge/Badge.kt

@@ -33,7 +33,7 @@ fun Badge(
     borderSize: Dp = 2.dp,
     textColor: Color = Color.White,
     textSize: TextUnit = 20.sp,
-    contentPadding: Dp = 2.dp,
+    contentPadding: Dp = 0.dp,
     onClick: () -> Unit = {}
 ) {
     FocusableBox(
@@ -43,7 +43,7 @@ fun Badge(
     ) {
         CircleText(
             modifier = modifier.clip(CircleShape),
-            contentPadding = contentPadding + borderSize,
+            contentPadding = contentPadding,
             backGroundColor = backGroundColor,
             text = count.toString(),
             textSize = textSize,

+ 1 - 1
app/src/main/kotlin/org/mjdev/tvapp/base/ui/components/text/CircleText.kt

@@ -44,7 +44,7 @@ fun CircleText(
     text: String = "0",
     textColor: Color = Color.White,
     textSize: TextUnit = 20.sp,
-    contentPadding: Dp = 2.dp,
+    contentPadding: Dp = 0.dp,
 ) {
 
     Box(