Fixed height for markers

This commit is contained in:
dotmg 2025-07-10 18:06:54 +02:00
parent 5490e44c11
commit 2cef5008cf

View file

@ -165,12 +165,18 @@ fun TimeUnitComposable(
.background(col)
) {
if (TimeUnitObject._hasmarker) {
val lineHeight = 20.sp
val density = LocalDensity.current
val lineHeightDp : Dp = with(density) {
lineHeight.toDp()
}
AutoResizingText(
text = tuo.pTemplate.markerToString(),
minFontSize = 8.sp,
maxFontSize = 18.sp,
maxLines = 1,
modifier = Modifier.fillMaxWidth())
modifier = Modifier.fillMaxWidth()
.height(lineHeightDp))
}
Row (modifier = Modifier.height(IntrinsicSize.Min)){
if (tuo.sep0 == "/" || tuo.sep0 == "|") {