@lvce-editor/source-control-worker 1.20.0 → 1.21.0
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.
|
@@ -1615,16 +1615,17 @@ const create2 = (id, uri, x, y, width, height, workspacePath) => {
|
|
|
1615
1615
|
inputPlaceholder: '',
|
|
1616
1616
|
inputSource: 0,
|
|
1617
1617
|
maxInputLines: 5,
|
|
1618
|
-
inputFontFamily: '"
|
|
1619
|
-
inputFontSize:
|
|
1618
|
+
inputFontFamily: 'system-ui, Ubuntu, "Droid Sans", sans-serif',
|
|
1619
|
+
inputFontSize: 13,
|
|
1620
1620
|
inputFontWeight: 400,
|
|
1621
|
-
inputLetterSpacing: 0
|
|
1621
|
+
inputLetterSpacing: 0,
|
|
1622
|
+
inputLineHeight: 14.95
|
|
1622
1623
|
};
|
|
1623
1624
|
set$1(id, state, state);
|
|
1624
1625
|
};
|
|
1625
1626
|
|
|
1626
1627
|
const isEqual$2 = (oldState, newState) => {
|
|
1627
|
-
return
|
|
1628
|
+
return oldState.inputBoxHeight === newState.inputBoxHeight;
|
|
1628
1629
|
};
|
|
1629
1630
|
|
|
1630
1631
|
const RenderItems = 4;
|
|
@@ -2299,10 +2300,10 @@ const handleInput = async (state, value, inputSource = User) => {
|
|
|
2299
2300
|
inputFontFamily,
|
|
2300
2301
|
inputFontSize,
|
|
2301
2302
|
inputFontWeight,
|
|
2302
|
-
inputLetterSpacing
|
|
2303
|
+
inputLetterSpacing,
|
|
2304
|
+
inputLineHeight
|
|
2303
2305
|
} = state;
|
|
2304
|
-
const
|
|
2305
|
-
const inputBoxHeight = await getInputHeight(value, width, inputFontFamily, inputFontWeight, inputFontSize, inputLetterSpacing, lineHeight);
|
|
2306
|
+
const inputBoxHeight = await getInputHeight(value, width, inputFontFamily, inputFontWeight, inputFontSize, inputLetterSpacing, inputLineHeight);
|
|
2306
2307
|
return {
|
|
2307
2308
|
...state,
|
|
2308
2309
|
inputValue: value,
|