From 2663fb17f0f7a40a9378fa81886b609c6b6925c5 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Fri, 20 Jan 2023 09:48:24 +0100 Subject: [PATCH] style: rollback deep style Signed-off-by: Luka Trovic --- cypress/support/commands.js | 10 +++++----- src/views/RichWorkspace.vue | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 66824e57ee7..1d833a02dc7 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -364,11 +364,6 @@ Cypress.Commands.add('showHiddenFiles', () => { cy.get('.modal-container__close').click() }) -Cypress.on( - 'uncaught:exception', - err => !err.message.includes('ResizeObserver loop limit exceeded'), -) - Cypress.Commands.add('createDescription', () => { const url = '**/remote.php/dav/files/**' cy.intercept({ method: 'PUT', url }) @@ -381,3 +376,8 @@ Cypress.Commands.add('createDescription', () => { }) cy.wait('@addDescription') }) + +Cypress.on( + 'uncaught:exception', + err => !err.message.includes('ResizeObserver loop limit exceeded'), +) diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index 1d1bdcb3bea..d2b8d8adfc8 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -219,7 +219,7 @@ export default { color: var(--color-text-maxcontrast); } - #rich-workspace:deep(div[contenteditable=false]) { + #rich-workspace div[contenteditable=false] { width: 100%; padding: 0px; background-color: var(--color-main-background); @@ -227,34 +227,34 @@ export default { border: none; } - #rich-workspace:deep(.text-editor) { + #rich-workspace .text-editor { height: 100%; position: unset !important; top: auto !important; } - #rich-workspace:deep(.text-editor__wrapper) { + #rich-workspace .text-editor__wrapper { position: unset !important; overflow: visible; } - #rich-workspace:deep(.text-editor__main) { + #rich-workspace .text-editor__main { overflow: visible !important; } - #rich-workspace:deep(.content-wrapper) { + #rich-workspace .content-wrapper { overflow: scroll !important; max-height: calc(40vh - 50px); padding-left: 10px; padding-bottom: 10px; } - #rich-workspace:deep(.text-editor__wrapper .ProseMirror) { + #rich-workspace .text-editor__wrapper .ProseMirror { padding: 0px; margin: 0; } - #rich-workspace:deep(.editor__content) { + #rich-workspace .editor__content { margin: 0; }