Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-nextcloud committed Dec 26, 2022
1 parent ed0e34d commit 1d4d2e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/workspace.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ describe('Workspace', function() {
})

it('adds a Readme.md', function() {
const url = '**/remote.php/dav/files/**'
cy.intercept({ method: 'PUT', url })
.as('addDescription')

cy.visit(`apps/files?dir=/${encodeURIComponent(currentFolder)}`)
cy.get('.files-fileList').should('not.contain', 'Readme.md')

Expand Down Expand Up @@ -217,12 +221,8 @@ describe('Workspace', function() {
const types = ['info', 'warn', 'error', 'success']

beforeEach(function() {
<<<<<<< HEAD
cy.visit(`apps/files?dir=/${encodeURIComponent(currentFolder)}`)
cy.openWorkspace().type('Callout')
=======
cy.openWorkspace().type('Callout', {force: true})
>>>>>>> 161e4c7fe (fix: cypress errors and lint issues)
})
// eslint-disable-next-line cypress/no-async-tests
it('create callout', () => {
Expand Down
10 changes: 2 additions & 8 deletions src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ const newRichWorkspaceFileMenuPlugin = {
templateName: descriptionFile,
iconClass: 'icon-rename',
fileType: 'file',
useInput: descriptionFile,
useInput: false,
actionHandler() {
return window.FileList
.createFile(descriptionFile, { scrollTo: false, animate: false })
.then(() => emit('Text::showRichWorkspace'))
},
shouldShow() {
if (fileList.findFile(descriptionFile)) return false
Expand Down Expand Up @@ -218,13 +219,6 @@ const FilesWorkspacePlugin = {
fileList.$el.on('changeDirectory', data => {
vm.path = data.dir.toString()
})
fileList.$table.on('DOMSubtreeModified', () => {
if (fileList.findFile(descriptionFile)) {
emit('Text::showRichWorkspace')
} else {
emit('Text::hideRichWorkspace')
}
})
})
},
}
Expand Down
14 changes: 7 additions & 7 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,42 +219,42 @@ export default {
color: var(--color-text-maxcontrast);
}

#rich-workspace div[contenteditable=false] {
#rich-workspace:deep(div[contenteditable=false]) {
width: 100%;
padding: 0px;
background-color: var(--color-main-background);
opacity: 1;
border: none;
}

#rich-workspace .text-editor {
#rich-workspace:deep(.text-editor) {
height: 100%;
position: unset !important;
top: auto !important;
}

#rich-workspace .text-editor__wrapper {
#rich-workspace:deep(.text-editor__wrapper) {
position: unset !important;
overflow: visible;
}

#rich-workspace .text-editor__main {
#rich-workspace:deep(.text-editor__main) {
overflow: visible !important;
}

#rich-workspace .content-wrapper {
#rich-workspace:deep(.content-wrapper) {
overflow: scroll !important;
max-height: calc(40vh - 50px);
padding-left: 10px;
padding-bottom: 10px;
}

#rich-workspace .text-editor__wrapper .ProseMirror {
#rich-workspace:deep(.text-editor__wrapper .ProseMirror) {
padding: 0px;
margin: 0;
}

#rich-workspace .editor__content {
#rich-workspace:deep(.editor__content) {
margin: 0;
}

Expand Down

0 comments on commit 1d4d2e5

Please sign in to comment.