Fixed height for markers
This commit is contained in:
parent
5490e44c11
commit
2cef5008cf
1 changed files with 7 additions and 1 deletions
|
|
@ -165,12 +165,18 @@ fun TimeUnitComposable(
|
||||||
.background(col)
|
.background(col)
|
||||||
) {
|
) {
|
||||||
if (TimeUnitObject._hasmarker) {
|
if (TimeUnitObject._hasmarker) {
|
||||||
|
val lineHeight = 20.sp
|
||||||
|
val density = LocalDensity.current
|
||||||
|
val lineHeightDp : Dp = with(density) {
|
||||||
|
lineHeight.toDp()
|
||||||
|
}
|
||||||
AutoResizingText(
|
AutoResizingText(
|
||||||
text = tuo.pTemplate.markerToString(),
|
text = tuo.pTemplate.markerToString(),
|
||||||
minFontSize = 8.sp,
|
minFontSize = 8.sp,
|
||||||
maxFontSize = 18.sp,
|
maxFontSize = 18.sp,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
modifier = Modifier.fillMaxWidth())
|
modifier = Modifier.fillMaxWidth()
|
||||||
|
.height(lineHeightDp))
|
||||||
}
|
}
|
||||||
Row (modifier = Modifier.height(IntrinsicSize.Min)){
|
Row (modifier = Modifier.height(IntrinsicSize.Min)){
|
||||||
if (tuo.sep0 == "/" || tuo.sep0 == "|") {
|
if (tuo.sep0 == "/" || tuo.sep0 == "|") {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue