@capillarytech/creatives-library 8.0.242-alpha.7 → 8.0.242-alpha.9
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
|
@@ -510,7 +510,7 @@ const HTMLEditor = ({
|
|
|
510
510
|
width="90vw"
|
|
511
511
|
className="html-editor-fullscreen-modal"
|
|
512
512
|
>
|
|
513
|
-
<CapRow className={`html-editor-fullscreen ${isLibraryMode ? 'html-editor-fullscreen--library-mode' : ''}`}>
|
|
513
|
+
<CapRow className={`html-editor-fullscreen html-editor-fullscreen--${variant} ${isLibraryMode ? 'html-editor-fullscreen--library-mode' : ''}`}>
|
|
514
514
|
{/* Editor Toolbar - Conditional based on variant */}
|
|
515
515
|
{variant === HTML_EDITOR_VARIANTS.EMAIL ? (
|
|
516
516
|
<EditorToolbar
|
|
@@ -9,53 +9,47 @@
|
|
|
9
9
|
|
|
10
10
|
// Fullscreen modal header styling - using proper CSS specificity instead of !important
|
|
11
11
|
.html-editor-fullscreen {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.device-toggle {
|
|
21
|
-
flex: 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Toolbar styling in fullscreen mode
|
|
25
|
-
.editor-toolbar {
|
|
26
|
-
background-color: transparent;
|
|
27
|
-
border-bottom: none;
|
|
28
|
-
padding: 0;
|
|
29
|
-
min-height: 3.25rem;
|
|
30
|
-
height: 3.25rem;
|
|
31
|
-
position: relative;
|
|
12
|
+
// INAPP variant only: Fullscreen header styling
|
|
13
|
+
&--inapp {
|
|
14
|
+
.html-editor__header--fullscreen {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
background-color: $CAP_G10;
|
|
18
|
+
border-bottom: 0.0625rem solid $CAP_G08;
|
|
19
|
+
padding-right: 1rem;
|
|
32
20
|
|
|
33
|
-
//
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
// Device toggle takes available space
|
|
22
|
+
.device-toggle {
|
|
23
|
+
flex: 1;
|
|
36
24
|
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
25
|
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
// Toolbar styling in fullscreen mode - INAPP variant only
|
|
27
|
+
.editor-toolbar {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
border-bottom: none;
|
|
30
|
+
padding: 0;
|
|
31
|
+
min-height: 3.25rem;
|
|
32
|
+
height: 3.25rem;
|
|
33
|
+
position: relative;
|
|
44
34
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
// Right-align toolbar actions
|
|
36
|
+
&__right {
|
|
37
|
+
margin-left: auto;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
48
40
|
}
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
// Library mode: Position absolute for toolbar in fullscreen (INAPP variant only)
|
|
43
|
+
&.html-editor-fullscreen--library-mode {
|
|
44
|
+
.html-editor__header--fullscreen {
|
|
45
|
+
.editor-toolbar {
|
|
46
|
+
position: absolute;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
}
|
|
56
52
|
|
|
57
|
-
}
|
|
58
|
-
|
|
59
53
|
.html-editor {
|
|
60
54
|
height: 37.5rem; // Fixed height instead of 100vh (600px = 37.5rem)
|
|
61
55
|
max-height: 80vh; // Responsive maximum height
|
|
@@ -159,6 +153,15 @@
|
|
|
159
153
|
}
|
|
160
154
|
}
|
|
161
155
|
}
|
|
156
|
+
|
|
157
|
+
// Library mode: Position absolute for toolbar in InApp variant
|
|
158
|
+
&.html-editor--library-mode {
|
|
159
|
+
.html-editor__header {
|
|
160
|
+
.editor-toolbar {
|
|
161
|
+
position: absolute;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
162
165
|
}
|
|
163
166
|
|
|
164
167
|
// Responsive design
|
|
@@ -265,6 +268,23 @@
|
|
|
265
268
|
}
|
|
266
269
|
}
|
|
267
270
|
|
|
271
|
+
// Fullscreen modal library mode styles (outside .html-editor block since fullscreen is a separate element)
|
|
272
|
+
.html-editor-fullscreen--library-mode {
|
|
273
|
+
.preview-pane {
|
|
274
|
+
max-height: calc(95vh - 5%);
|
|
275
|
+
|
|
276
|
+
&__content {
|
|
277
|
+
height: calc(95vh - 5%); // Same as editor pane - maximize to full available height
|
|
278
|
+
max-height: calc(95vh - 50%);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
iframe {
|
|
282
|
+
height: calc(95vh - 5%); // Same as editor pane - maximize to full available height
|
|
283
|
+
max-height: calc(95vh - 50%);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
268
288
|
// Animation classes for smooth transitions
|
|
269
289
|
.html-editor-transition {
|
|
270
290
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|