mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Unify disabled parameters background color (#12306)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
This commit is contained in:
parent
2e90eba47e
commit
8c635993bd
|
@ -114,27 +114,14 @@ defineExpose({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div ref="root" title="" data-test-id="inline-expression-editor-input"></div>
|
||||||
ref="root"
|
|
||||||
title=""
|
|
||||||
:class="$style.editor"
|
|
||||||
data-test-id="inline-expression-editor-input"
|
|
||||||
></div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" module>
|
|
||||||
.editor div[contenteditable='false'] {
|
|
||||||
background-color: var(--disabled-fill, var(--color-background-light));
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
:deep(.cm-editor) {
|
:deep(.cm-editor) {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
:deep(.cm-content) {
|
:deep(.cm-content) {
|
||||||
--disabled-fill: var(--color-background-base);
|
|
||||||
padding-left: var(--spacing-2xs);
|
padding-left: var(--spacing-2xs);
|
||||||
|
|
||||||
&[aria-readonly='true'] {
|
&[aria-readonly='true'] {
|
||||||
|
|
|
@ -1059,6 +1059,7 @@ onUpdated(async () => {
|
||||||
:expression-edit-dialog-visible="expressionEditDialogVisible"
|
:expression-edit-dialog-visible="expressionEditDialogVisible"
|
||||||
:path="path"
|
:path="path"
|
||||||
:parameter-issues="getIssues"
|
:parameter-issues="getIssues"
|
||||||
|
:is-read-only="isReadOnly"
|
||||||
@update:model-value="valueChanged"
|
@update:model-value="valueChanged"
|
||||||
@modal-opener-click="openExpressionEditorModal"
|
@modal-opener-click="openExpressionEditorModal"
|
||||||
@focus="setFocus"
|
@focus="setFocus"
|
||||||
|
|
|
@ -650,6 +650,7 @@ function getParameterValue<T extends NodeParameterValueType = NodeParameterValue
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.parameter-input-list-wrapper {
|
.parameter-input-list-wrapper {
|
||||||
|
--disabled-fill: var(--color-background-base);
|
||||||
.icon-button {
|
.icon-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
@ -324,6 +324,7 @@ const onAddResourceClicked = () => {
|
||||||
ref="input"
|
ref="input"
|
||||||
:model-value="expressionDisplayValue"
|
:model-value="expressionDisplayValue"
|
||||||
:path="path"
|
:path="path"
|
||||||
|
:is-read-only="isReadOnly"
|
||||||
:rows="3"
|
:rows="3"
|
||||||
@update:model-value="onInputChange"
|
@update:model-value="onInputChange"
|
||||||
@modal-opener-click="emit('modalOpenerClick')"
|
@modal-opener-click="emit('modalOpenerClick')"
|
||||||
|
|
Loading…
Reference in a new issue