@lobehub/editor 4.8.1 → 4.8.2
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/es/renderer.js +4 -8
- package/package.json +1 -1
package/es/renderer.js
CHANGED
|
@@ -909,8 +909,11 @@ const base = createStaticStyles(({ css, cssVar }) => ({
|
|
|
909
909
|
`,
|
|
910
910
|
cell: css`
|
|
911
911
|
overflow: auto;
|
|
912
|
+
|
|
912
913
|
min-width: 0;
|
|
913
914
|
min-height: 24px;
|
|
915
|
+
padding-block: 8px;
|
|
916
|
+
padding-inline: 16px;
|
|
914
917
|
|
|
915
918
|
> div {
|
|
916
919
|
width: 100%;
|
|
@@ -932,7 +935,6 @@ const base = createStaticStyles(({ css, cssVar }) => ({
|
|
|
932
935
|
`
|
|
933
936
|
}));
|
|
934
937
|
const defaultOverrides = createStaticStyles(({ css, cssVar }) => ({
|
|
935
|
-
cellOld: css``,
|
|
936
938
|
header: css`
|
|
937
939
|
display: grid;
|
|
938
940
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
@@ -969,11 +971,9 @@ const borderlessOverrides = createStaticStyles(({ css, cssVar }) => ({
|
|
|
969
971
|
background: ${cssVar.colorFillQuaternary};
|
|
970
972
|
}
|
|
971
973
|
`,
|
|
972
|
-
cellOld: css``,
|
|
973
974
|
header: css`
|
|
974
975
|
display: grid;
|
|
975
976
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
976
|
-
column-gap: 12px;
|
|
977
977
|
`,
|
|
978
978
|
headerCell: css`
|
|
979
979
|
padding-block: 8px;
|
|
@@ -985,14 +985,10 @@ const borderlessOverrides = createStaticStyles(({ css, cssVar }) => ({
|
|
|
985
985
|
text-transform: uppercase;
|
|
986
986
|
letter-spacing: 0.05em;
|
|
987
987
|
`,
|
|
988
|
-
headerOld: css``,
|
|
989
988
|
root: css`
|
|
990
989
|
overflow: hidden;
|
|
991
990
|
font-size: 14px;
|
|
992
991
|
background: ${cssVar.colorBgContainer};
|
|
993
|
-
`,
|
|
994
|
-
row: css`
|
|
995
|
-
column-gap: 12px;
|
|
996
992
|
`
|
|
997
993
|
}));
|
|
998
994
|
function merge(baseSet, overrides) {
|
|
@@ -1068,7 +1064,7 @@ function LexicalDiff({ oldValue, newValue, variant = "default", appearance = "de
|
|
|
1068
1064
|
return /* @__PURE__ */ jsxs("div", {
|
|
1069
1065
|
className: styles.row,
|
|
1070
1066
|
children: [/* @__PURE__ */ jsx(RowCell, {
|
|
1071
|
-
className: cx(styles.cell,
|
|
1067
|
+
className: cx(styles.cell, !row.oldCell && styles.emptyCell, row.kind === "delete" && styles.deleteCell),
|
|
1072
1068
|
content: oldContent
|
|
1073
1069
|
}), /* @__PURE__ */ jsx(RowCell, {
|
|
1074
1070
|
className: cx(styles.cell, !row.newCell && styles.emptyCell, row.kind === "insert" && styles.insertCell),
|
package/package.json
CHANGED