feat(exercises): enhance inline media functionality and update styles
Deploy Development / deploy (push) Successful in 33s
Test Suite / pytest-backend (push) Successful in 24s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 27s
Deploy Development / deploy (push) Successful in 33s
Test Suite / pytest-backend (push) Successful in 24s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 27s
- Updated inline media markup to include a new data attribute for media size. - Enhanced the Rich Text Editor to support media size selection when inserting inline media. - Improved CSS styles for inline media display, accommodating different sizes (small, medium, full). - Bumped version to 0.8.62 and updated changelog to reflect these changes.
This commit is contained in:
1 parent
979e328cef
commit
311a106d93
14 files changed
+703
-113
No files matched your search
+59
-2
@@ -3912,10 +3912,10 @@ a.analysis-split__nav-item {
|
||||
cursor: default;
|
||||
}
|
||||
.rich-text-editor span.shinkan-inline-media::before {
|
||||
content: '📎 #' attr(data-shinkan-exercise-media);
|
||||
content: '📎 #' attr(data-shinkan-exercise-media) ' · ' attr(data-shinkan-exercise-media-size);
|
||||
}
|
||||
|
||||
/* Listen im Editor (nicht nur in .rich-text-content) – sonst „unsichtbare“ Bullets */
|
||||
/* Listen im Editor */
|
||||
.rich-text-editor ul,
|
||||
.rich-text-editor ol {
|
||||
margin: 0.35rem 0;
|
||||
@@ -3941,6 +3941,63 @@ a.analysis-split__nav-item {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rich-text-content .shinkan-inline-media-wrap--sm {
|
||||
max-width: min(280px, 92vw);
|
||||
}
|
||||
.rich-text-content .shinkan-inline-media-wrap--md {
|
||||
max-width: min(560px, 92vw);
|
||||
}
|
||||
.rich-text-content .shinkan-inline-media-wrap--full {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.btn-secondary.rte-tab--active {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.22);
|
||||
}
|
||||
|
||||
.rte-inline-asset-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
.rte-inline-asset-tile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
text-align: left;
|
||||
gap: 4px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
.rte-inline-asset-tile:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.rte-inline-asset-tile--selected {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.2);
|
||||
}
|
||||
.rte-inline-asset-tile__meta {
|
||||
font-size: 11px;
|
||||
color: var(--text3);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.rte-inline-asset-tile__name {
|
||||
font-size: 13px;
|
||||
line-height: 1.3;
|
||||
color: var(--text1);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rich-text-content {
|
||||
font-size: 16px;
|
||||
line-height: 1.55;
|
||||
|
||||
Reference in new issue
Block a user