Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
Expand Down Expand Up @@ -140,11 +141,10 @@ fun EssentialsFloatingToolbar(
style = MaterialTheme.typography.titleMedium,
color = MaterialTheme.colorScheme.background,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier
.widthIn(min = 100.dp, max = 250.dp)
.padding(horizontal = 8.dp)
.align(Alignment.CenterVertically)
.align(Alignment.CenterVertically).basicMarquee()
)
}
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.sameerasw.essentials.ui.components.pickers

import androidx.compose.foundation.background
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
Expand Down Expand Up @@ -66,7 +67,7 @@ fun <T> SegmentedPicker(
iconProvider(item)
androidx.compose.foundation.layout.Spacer(Modifier.padding(end = 8.dp))
}
Text(labelProvider(item), fontSize = dimensionResource(R.dimen.font_small).value.sp)
Text(labelProvider(item), fontSize = dimensionResource(R.dimen.font_small).value.sp, modifier= Modifier.basicMarquee(), maxLines = 1)
}
}
}
Expand Down