@lvce-editor/main-area-worker 9.67.3 → 9.67.4
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.
|
@@ -8411,8 +8411,10 @@ const getSashCornerCss = (left, top) => {
|
|
|
8411
8411
|
top: ${top}%;
|
|
8412
8412
|
}`;
|
|
8413
8413
|
};
|
|
8414
|
-
const getCss = (layout, width = 0, dragOverlay) => {
|
|
8415
|
-
const rules = [
|
|
8414
|
+
const getCss = (layout, width = 0, dragOverlay, tabHeight = 35) => {
|
|
8415
|
+
const rules = [`.EditorGroupHeader {
|
|
8416
|
+
--EditorGroupHeight: ${tabHeight}px;
|
|
8417
|
+
}`];
|
|
8416
8418
|
if (layout) {
|
|
8417
8419
|
rules.push(...getEditorGroupCss(layout), ...getDragOverlayCss(dragOverlay), ...getSashCss(layout, width));
|
|
8418
8420
|
const sashCorner = getSashCorner(layout);
|
|
@@ -8425,7 +8427,7 @@ const getCss = (layout, width = 0, dragOverlay) => {
|
|
|
8425
8427
|
};
|
|
8426
8428
|
|
|
8427
8429
|
const renderCss = (oldState, newState) => {
|
|
8428
|
-
const css = getCss(newState.layout, newState.width, newState.dragOverlay);
|
|
8430
|
+
const css = getCss(newState.layout, newState.width, newState.dragOverlay, newState.tabHeight);
|
|
8429
8431
|
return [SetCss, newState.uid, css];
|
|
8430
8432
|
};
|
|
8431
8433
|
|