From d507dffb13baff4485cefa720df46e34423a8799 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Thu, 3 Jul 2025 10:15:02 +0800 Subject: [PATCH] :art: Hide header image button in read-only mode of the editor (#15205) --- app/src/assets/scss/protyle/_protyle.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss index e38f52054..b7ebef171 100644 --- a/app/src/assets/scss/protyle/_protyle.scss +++ b/app/src/assets/scss/protyle/_protyle.scss @@ -265,10 +265,13 @@ } .protyle-top:hover .protyle-background--enable { - .protyle-background__action, - .protyle-background__img .protyle-icons { + .protyle-background__action { opacity: .86; } + + .protyle-background__img .protyle-icons { + display: flex; + } } .protyle-background { @@ -332,6 +335,7 @@ } .protyle-icons { + display: none; position: absolute; top: 8px; right: 8px;