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:
+4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user