@capillarytech/creatives-library 8.0.242-alpha.4 → 8.0.242-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -436,7 +436,9 @@ const HTMLEditor = ({
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
// Add library-mode class when not in full mode
|
|
439
|
-
|
|
439
|
+
// Note: isFullMode defaults to true, so library mode is when isFullMode === false
|
|
440
|
+
const isLibraryMode = isFullMode === false;
|
|
441
|
+
const editorClassName = `html-editor html-editor--${variant} ${isLibraryMode ? 'html-editor--library-mode' : ''} ${className}`.trim();
|
|
440
442
|
|
|
441
443
|
return (
|
|
442
444
|
<EditorProvider value={contextValue}>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Import Cap UI variables (correct path)
|
|
8
|
-
@import
|
|
8
|
+
@import "~@capillarytech/cap-ui-library/styles/_variables.scss";
|
|
9
9
|
|
|
10
10
|
// Fullscreen modal header styling - using proper CSS specificity instead of !important
|
|
11
11
|
.html-editor-fullscreen {
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
overflow: hidden;
|
|
51
51
|
|
|
52
52
|
// Library mode: Apply specific styles when isFullMode is false
|
|
53
|
-
|
|
53
|
+
// Using combined selector for higher specificity without !important
|
|
54
|
+
&.html-editor--library-mode {
|
|
54
55
|
.preview-pane {
|
|
55
56
|
max-height: calc(107vh);
|
|
56
57
|
|
|
@@ -143,7 +144,6 @@
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
|
|
147
147
|
// Responsive design
|
|
148
148
|
@media (max-width: 768px) {
|
|
149
149
|
height: 31.25rem; // 500px = 31.25rem - Smaller height on tablets
|