Skip to content

Commit 071fff9

Browse files
committed
Allow wrapping counter units
Breaks layout for long units
1 parent ae7a855 commit 071fff9

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

entry_types/scrolled/package/src/contentElements/counter/Counter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ export function Counter({configuration, contentElementId, contentElementWidth, s
105105
<Text scaleCategory="counterUnit"
106106
typographySize={configuration.unitSize || 'md'}
107107
inline>
108-
<span className={styles.unit}
109-
style={configuration.unitColor ? {color: paletteColor(configuration.unitColor)} : undefined}>
108+
<span style={configuration.unitColor ? {color: paletteColor(configuration.unitColor)} : undefined}>
110109
{configuration.unit}
111110
</span>
112111
</Text>

entry_types/scrolled/package/src/contentElements/counter/Counter.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
word-break: break-word;
88
}
99

10-
.unit {
11-
white-space: nowrap;
12-
}
13-
1410
.numberCenter {
1511
text-align: center;
1612
}

0 commit comments

Comments
 (0)