diff options
-rw-r--r-- | cypress/e2e/attachments.spec.js | 1 | ||||
-rw-r--r-- | src/nodes/ImageView.vue | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cypress/e2e/attachments.spec.js b/cypress/e2e/attachments.spec.js index 976594439..20f444d40 100644 --- a/cypress/e2e/attachments.spec.js +++ b/cypress/e2e/attachments.spec.js @@ -127,6 +127,7 @@ const checkAttachment = (documentId, fileName, fileId, index, isImage = true) => * * @param {string} requestAlias Alias of the request we are waiting for * @param {number|undefined} index of the attachment + * @param {boolean} isImage is the attachment an image or a media file? */ const waitForRequestAndCheckAttachment = (requestAlias, index, isImage = true) => { return cy.wait('@' + requestAlias) diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue index 1de4a8ceb..8351f9455 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -347,6 +347,11 @@ export default { background-color: transparent; border: none !important; color: var(--color-text-maxcontrast) !important; + + &:focus { + border: 2px solid var(--color-border-dark) !important; + color: var(--color-main-text) !important; + } } } @@ -366,8 +371,7 @@ export default { max-width: 100%; } - &:hover, - &:focus { + &:hover { input[type='text'] { border: 2px solid var(--color-border-dark) !important; color: var(--color-main-text) !important; |