mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(editor): Update canvas handle plus line size on new canvas (no-changelog) (#11157)
This commit is contained in:
parent
5697de4429
commit
7f7294be9e
|
@ -27,6 +27,8 @@ const isHovered = ref(false);
|
|||
|
||||
const renderOptions = computed(() => render.value.options as CanvasNodeDefaultRender['options']);
|
||||
|
||||
const runDataTotal = computed(() => runData.value?.total ?? 0);
|
||||
|
||||
const runDataLabel = computed(() =>
|
||||
runData.value
|
||||
? i18n.baseText('ndv.output.items', {
|
||||
|
@ -38,7 +40,7 @@ const runDataLabel = computed(() =>
|
|||
|
||||
const isHandlePlusVisible = computed(() => !isConnecting.value || isHovered.value);
|
||||
|
||||
const plusType = computed(() => ((runData.value?.total ?? 0) > 0 ? 'success' : 'default'));
|
||||
const plusType = computed(() => (runDataTotal.value > 0 ? 'success' : 'default'));
|
||||
|
||||
const plusLineSize = computed(
|
||||
() =>
|
||||
|
@ -46,7 +48,7 @@ const plusLineSize = computed(
|
|||
small: 46,
|
||||
medium: 66,
|
||||
large: 80,
|
||||
})[(renderOptions.value.outputs?.labelSize ?? runData.value) ? 'large' : 'small'],
|
||||
})[(runDataTotal.value > 0 ? 'large' : renderOptions.value.outputs?.labelSize) ?? 'small'],
|
||||
);
|
||||
|
||||
function onMouseEnter() {
|
||||
|
|
Loading…
Reference in a new issue