From 5dae5284c4dfcf80c5c8a71c932b0461092e3406 Mon Sep 17 00:00:00 2001
From: Julien Veyssier <eneiluj@posteo.net>
Date: Fri, 2 Sep 2022 11:02:45 +0200
Subject: better border management for image caption

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
---
 src/nodes/ImageView.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/nodes/ImageView.vue')

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;
-- 
cgit v1.2.3

