update electron

This commit is contained in:
codetypes committed 2024-04-18 20:27:18 +08:00
1 parent 9a16935a13
commit ccdaa22c85
5 files changed
+2130 -837

No files matched your search

+4 -8
View File
@@ -638,23 +638,19 @@ export const Explorer: FC = () => {
}
return (
<div
<Flex
vertical
ref={keysRef}
tabIndex={-1}
style={{ height: "100%" }}
onContextMenuCapture={() => {
setContextMenu(directoryContextMenu);
}}
onContextMenu={(e) => {
if (workspace.fileTree) {
// setSelectedKeys([workspace.fileTree.path]);
}
}}
>
<div style={{ padding: "12px 24px" }}>
<span style={{ fontSize: "18px", fontWeight: "600" }}>{t("explorer.title")}</span>
</div>
<Flex vertical style={{ overflow: "auto", height: "100%" }}>
<Flex vertical style={{ overflow: "auto", height: "100%", paddingBottom: "20px" }}>
<Dropdown menu={{ items: contextMenu, onClick }} trigger={["contextMenu"]}>
<div>
<DirectoryTree
@@ -733,6 +729,6 @@ export const Explorer: FC = () => {
</div>
</Dropdown>
</Flex>
</div>
</Flex>
);
};
+1 -1
View File
@@ -159,7 +159,7 @@ export const Inspector: FC = () => {
def.output?.forEach((_, i) => {
const v = values[`output.${i}`];
data.output ||= [];
data.output!.push(v ?? "");
data.output.push(v ?? "");
});
workspace.editing?.dispatch?.("updateNode", {
data: data,
+10
View File
@@ -16,6 +16,16 @@
--b3-color-border: #30363d;
}
::-webkit-scrollbar {
width: 9px;
}
::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 9px;
-webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}
body {
margin: 0;
}