@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.242-alpha.4",
4
+ "version": "8.0.242-alpha.6",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -436,7 +436,9 @@ const HTMLEditor = ({
436
436
  }
437
437
 
438
438
  // Add library-mode class when not in full mode
439
- const editorClassName = `html-editor html-editor--${variant} ${!isFullMode ? 'html-editor--library-mode' : ''} ${className}`;
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 '~@capillarytech/cap-ui-library/styles/_variables.scss';
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
- &--library-mode {
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