Merged in fix/LOY-444-points-to-keep-left-text (pull request #3086)

fix(LOY-444): fix markerLabel text when left aligned

* fix(LOY-444): fix markerLabel text when left aligned


Approved-by: Matilda Landström
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-11-07 11:21:17 +00:00
parent 7fb95f436b
commit ae3537e008
2 changed files with 21 additions and 10 deletions
@@ -24,11 +24,15 @@ export default function ProgressSection({
const intl = useIntl()
const hasMarkerPosition = progress.markerPosition !== undefined
const shouldWrap =
hasMarkerPosition && toKeepCurrent && (progress.markerPosition ?? 0) < 30
return (
<div
className={cx(styles.progressSection, {
[styles.hasMarker]: hasMarkerPosition,
})}
data-wrap={shouldWrap ? "true" : undefined}
>
<div className={styles.progressContainer}>
<Progress