feat: enhance RichTextEditor and exercise variant management
- Added support for saving and restoring text selection in the RichTextEditor, improving user experience during formatting. - Updated CSS styles for the RichTextEditor to enhance list formatting and overall appearance. - Introduced new ExerciseVariantFields component to streamline the editing of exercise variants, including fields for variant name, description, execution changes, and more. - Enhanced ExerciseFormPage to manage exercise variants more effectively, including improved state handling and UI updates for variant selection.
This commit is contained in:
1 parent
1ee1a2f2d9
commit
91b3fec5cc
3 files changed
+393
-293
No files matched your search
@@ -2406,6 +2406,26 @@ a.analysis-split__nav-item {
|
||||
overflow-y: auto;
|
||||
resize: vertical;
|
||||
}
|
||||
/* Listen im Editor (nicht nur in .rich-text-content) – sonst „unsichtbare“ Bullets */
|
||||
.rich-text-editor ul,
|
||||
.rich-text-editor ol {
|
||||
margin: 0.35rem 0;
|
||||
padding-left: 1.35rem;
|
||||
list-style-position: outside;
|
||||
}
|
||||
.rich-text-editor ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
.rich-text-editor ol {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
.rich-text-editor li {
|
||||
margin: 0.15rem 0;
|
||||
display: list-item;
|
||||
}
|
||||
.rich-text-editor p {
|
||||
margin: 0.35rem 0;
|
||||
}
|
||||
.rich-text-editor:empty:before {
|
||||
content: attr(data-placeholder);
|
||||
color: var(--text3);
|
||||
@@ -2441,6 +2461,45 @@ a.analysis-split__nav-item {
|
||||
.exercise-card__body {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.exercise-variants-details summary {
|
||||
list-style: none;
|
||||
}
|
||||
.exercise-variants-details summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.exercise-variants-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.exercise-variants-summary__title {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.exercise-variants-summary__badge {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text2);
|
||||
background: var(--surface2);
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.exercise-variants-details__body {
|
||||
padding: 0 16px 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.exercise-variants-hint {
|
||||
font-size: 13px;
|
||||
color: var(--text2);
|
||||
margin: 12px 0;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.exercise-card__actions {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user