File tree Expand file tree Collapse file tree 5 files changed +20
-6
lines changed
library-authoring/section-subsections Expand file tree Collapse file tree 5 files changed +20
-6
lines changed Original file line number Diff line number Diff line change
1
+ .inplace-text-editor-label {
2
+ display : -webkit-box ; /* stylelint-disable-line value-no-vendor-prefix */
3
+ -webkit-line-clamp : 1 ;
4
+ -webkit-box-orient : vertical ;
5
+ overflow : hidden ;
6
+ }
Original file line number Diff line number Diff line change 6
6
Form ,
7
7
Icon ,
8
8
IconButton ,
9
- Truncate ,
10
9
Stack ,
11
10
} from '@openedx/paragon' ;
12
11
import { Edit } from '@openedx/paragon/icons' ;
@@ -69,9 +68,9 @@ export const InplaceTextEditor: React.FC<InplaceTextEditorProps> = ({
69
68
// In that case, we show the new text instead of the original in read-only mode as an optimistic update.
70
69
if ( readOnly || pendingSaveText ) {
71
70
return (
72
- < Truncate . Deprecated className = { textClassName } >
71
+ < div className = { `inplace-text-editor-label ${ textClassName } ` } >
73
72
{ pendingSaveText || text }
74
- </ Truncate . Deprecated >
73
+ </ div >
75
74
) ;
76
75
}
77
76
@@ -93,9 +92,9 @@ export const InplaceTextEditor: React.FC<InplaceTextEditorProps> = ({
93
92
)
94
93
: (
95
94
< >
96
- < Truncate . Deprecated className = { textClassName } >
95
+ < div className = { `inplace-text-editor-label ${ textClassName } ` } >
97
96
{ text }
98
- </ Truncate . Deprecated >
97
+ </ div >
99
98
< IconButton
100
99
src = { Edit }
101
100
iconAs = { Icon }
Original file line number Diff line number Diff line change 14
14
@import " ./block-type-utils" ;
15
15
@import " ./modal-iframe" ;
16
16
@import " ./alert-message" ;
17
+ @import " ./inplace-text-editor/InplaceTextEditor" ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ interface OverflowLinksProps {
28
28
const OverflowLinks = ( { children, to } : OverflowLinksProps ) => {
29
29
if ( typeof to === 'string' ) {
30
30
return (
31
- < Link className = "link-muted" to = { to } >
31
+ < Link className = "subsection-breadcrumb link-muted" to = { to } >
32
32
{ children }
33
33
</ Link >
34
34
) ;
Original file line number Diff line number Diff line change 36
36
padding : 0 ;
37
37
}
38
38
}
39
+
40
+ .subsection-breadcrumb {
41
+ max-width : 700px ;
42
+ display : inline-block ;
43
+ white-space : nowrap ;
44
+ overflow : hidden ;
45
+ text-overflow : ellipsis ;
46
+ }
You can’t perform that action at this time.
0 commit comments