From dc1c5fce8af732c438d2f1698ee08f18d2358a6c Mon Sep 17 00:00:00 2001 From: Elias Meire Date: Mon, 1 Jul 2024 11:03:04 +0200 Subject: [PATCH] fix(editor): Improve text wrapping in schema view (#9888) --- cypress/e2e/5-ndv.cy.ts | 3 +- .../src/components/RunDataSchema.vue | 1 + .../src/components/RunDataSchemaItem.vue | 77 +- .../__snapshots__/RunDataSchema.test.ts.snap | 2230 +++++++++-------- 4 files changed, 1215 insertions(+), 1096 deletions(-) diff --git a/cypress/e2e/5-ndv.cy.ts b/cypress/e2e/5-ndv.cy.ts index 671b8287b3..287cbd94f5 100644 --- a/cypress/e2e/5-ndv.cy.ts +++ b/cypress/e2e/5-ndv.cy.ts @@ -631,8 +631,7 @@ describe('NDV', () => { ndv.getters.outputDisplayMode().find('label').eq(2).click({ force: true }); ndv.getters .outputDataContainer() - .findChildByTestId('run-data-schema-item') - .find('> span') + .findChildByTestId('run-data-schema-item-value') .should('include.text', ''); }); diff --git a/packages/editor-ui/src/components/RunDataSchema.vue b/packages/editor-ui/src/components/RunDataSchema.vue index 8f703c1fb2..679559b363 100644 --- a/packages/editor-ui/src/components/RunDataSchema.vue +++ b/packages/editor-ui/src/components/RunDataSchema.vue @@ -418,6 +418,7 @@ watch( .schema { display: grid; + padding-right: var(--spacing-s); grid-template-rows: 1fr; &.animated { diff --git a/packages/editor-ui/src/components/RunDataSchemaItem.vue b/packages/editor-ui/src/components/RunDataSchemaItem.vue index a63a7bd9f2..34979053f7 100644 --- a/packages/editor-ui/src/components/RunDataSchemaItem.vue +++ b/packages/editor-ui/src/components/RunDataSchemaItem.vue @@ -77,44 +77,47 @@ const getIconBySchemaType = (type: Schema['type']): string => {