fix(editor): Fix issues in dark mode (#9068)
Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
@@ -99,7 +99,7 @@ export default defineComponent({
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
background-color: var(--color-background-base);
|
||||
background-color: var(--color-run-data-background);
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
||||
|
||||
@@ -1294,10 +1294,10 @@ export default defineComponent({
|
||||
|
||||
&.error {
|
||||
path {
|
||||
fill: var(--node-error-output-color);
|
||||
fill: var(--color-node-error-output-text-color);
|
||||
}
|
||||
rect {
|
||||
stroke: var(--node-error-output-color);
|
||||
stroke: var(--color-node-error-output-text-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1436,7 +1436,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.node-output-endpoint-label.node-connection-category-error {
|
||||
color: var(--node-error-output-color);
|
||||
color: var(--color-node-error-output-text-color);
|
||||
}
|
||||
|
||||
.node-output-endpoint-label {
|
||||
|
||||
@@ -130,7 +130,7 @@ defineExpose({
|
||||
}
|
||||
|
||||
.clear {
|
||||
background-color: $node-creator-search-clear-color;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -600,7 +600,7 @@ export const nodeBase = defineComponent({
|
||||
nodeTypeData,
|
||||
this.__getEndpointColor(NodeConnectionType.Main),
|
||||
),
|
||||
fill: 'var(--node-error-output-color)',
|
||||
fill: 'var(--color-danger)',
|
||||
},
|
||||
cssClass: `dot-${type}-endpoint`,
|
||||
};
|
||||
|
||||
@@ -170,7 +170,6 @@
|
||||
var(--node-type-ai_vectorStore-color-s),
|
||||
var(--node-type-background-l)
|
||||
);
|
||||
--node-error-output-color: #991818;
|
||||
|
||||
--chat--spacing: var(--spacing-s);
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ export const CONNECTOR_PAINT_STYLE_DATA: PaintStyle = {
|
||||
|
||||
export const getConnectorColor = (type: ConnectionTypes, category?: string): string => {
|
||||
if (category === 'error') {
|
||||
return '--node-error-output-color';
|
||||
return '--color-node-error-output-text-color';
|
||||
}
|
||||
|
||||
if (type === NodeConnectionType.Main) {
|
||||
|
||||
Reference in New Issue
Block a user