@capillarytech/creatives-library 8.0.242-alpha.5 → 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.5",
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}>
@@ -36,23 +36,6 @@
36
36
  }
37
37
  }
38
38
  }
39
-
40
- // Library mode: Apply specific styles when isFullMode is false
41
- &--library-mode {
42
- .preview-pane {
43
- max-height: calc(107vh);
44
-
45
- &__content {
46
- height: calc(95vh - 5%); // Same as editor pane - maximize to full available height
47
- max-height: calc(95vh - 50%);
48
- }
49
-
50
- iframe {
51
- height: calc(95vh - 5%); // Same as editor pane - maximize to full available height
52
- max-height: calc(95vh - 50%);
53
- }
54
- }
55
- }
56
39
  }
57
40
 
58
41
  .html-editor {
@@ -67,7 +50,8 @@
67
50
  overflow: hidden;
68
51
 
69
52
  // Library mode: Apply specific styles when isFullMode is false
70
- &--library-mode {
53
+ // Using combined selector for higher specificity without !important
54
+ &.html-editor--library-mode {
71
55
  .preview-pane {
72
56
  max-height: calc(107vh);
73
57