diff --git a/src/generic/inplace-text-editor/InplaceTextEditor.scss b/src/generic/inplace-text-editor/InplaceTextEditor.scss new file mode 100644 index 0000000000..c1041c889c --- /dev/null +++ b/src/generic/inplace-text-editor/InplaceTextEditor.scss @@ -0,0 +1,6 @@ +.inplace-text-editor-label { + display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */ + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; +} diff --git a/src/generic/inplace-text-editor/index.tsx b/src/generic/inplace-text-editor/index.tsx index 07624d705f..d390ca71dd 100644 --- a/src/generic/inplace-text-editor/index.tsx +++ b/src/generic/inplace-text-editor/index.tsx @@ -6,7 +6,6 @@ import { Form, Icon, IconButton, - Truncate, Stack, } from '@openedx/paragon'; import { Edit } from '@openedx/paragon/icons'; @@ -69,9 +68,9 @@ export const InplaceTextEditor: React.FC = ({ // In that case, we show the new text instead of the original in read-only mode as an optimistic update. if (readOnly || pendingSaveText) { return ( - +
{pendingSaveText || text} - +
); } @@ -93,9 +92,9 @@ export const InplaceTextEditor: React.FC = ({ ) : ( <> - +
{text} - +
{ if (typeof to === 'string') { return ( - + {children} ); diff --git a/src/library-authoring/section-subsections/index.scss b/src/library-authoring/section-subsections/index.scss index 21781f9898..a9ecab897d 100644 --- a/src/library-authoring/section-subsections/index.scss +++ b/src/library-authoring/section-subsections/index.scss @@ -36,3 +36,11 @@ padding: 0; } } + +.subsection-breadcrumb { + max-width: 700px; + display: inline-block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +}