Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

style: add left padding to editor component and remove unused CSS (#18247)

GuanMu77fde04ef7ec
diff --git a/web/app/components/workflow/nodes/_base/components/editor/base.tsx b/web/app/components/workflow/nodes/_base/components/editor/base.tsx
index 3b31f44619c..38968b2e0d4 100644
--- a/web/app/components/workflow/nodes/_base/components/editor/base.tsx
+++ b/web/app/components/workflow/nodes/_base/components/editor/base.tsx
@@ -109,7 +109,7 @@ const Base: FC<Props> = ({
onHeightChange={setEditorContentHeight}
hideResize={isExpand}
>
- <div className='h-full pb-2'>
+ <div className='h-full pb-2 pl-2'>
{children}
</div>
</PromptEditorHeightResizeWrap>
diff --git a/web/app/components/workflow/nodes/_base/components/editor/code-editor/style.css b/web/app/components/workflow/nodes/_base/components/editor/code-editor/style.css
index 296ea0ab14d..72e0087a3ce 100644
--- a/web/app/components/workflow/nodes/_base/components/editor/code-editor/style.css
+++ b/web/app/components/workflow/nodes/_base/components/editor/code-editor/style.css
@@ -1,10 +1,3 @@
-.margin-view-overlays {
- padding-left: 10px;
-}
-
-.no-wrapper .margin-view-overlays {
- padding-left: 0;
-}
.monaco-editor {
background-color: transparent !important;