From 84da3069fccbd8ef38d3182bcfa987e4e055d2e3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 19 May 2024 11:26:55 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11459 --- app/src/assets/scss/protyle/_wysiwyg.scss | 33 ++++++++++++++--------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss index 2803a9879..78da728e7 100644 --- a/app/src/assets/scss/protyle/_wysiwyg.scss +++ b/app/src/assets/scss/protyle/_wysiwyg.scss @@ -326,10 +326,6 @@ height: 100%; } - &:hover .protyle-action__drag { - display: inline-block; - } - .protyle-action__drag { height: 30%; width: 4px; @@ -382,10 +378,6 @@ } } - & > [contenteditable="false"] > .img:hover .protyle-action__drag { - display: none; - } - &.iframe { // https://ld246.com/article/1644827326901 // https://github.com/siyuan-note/siyuan/issues/4172 @@ -410,10 +402,6 @@ } } - &:hover .protyle-action__drag { - display: inline-block; - } - .protyle-action__drag { height: 32px; width: 4px; @@ -595,12 +583,16 @@ } } +// 在思源中,不论只读模式还是预览点击图片都可以进行预览 +.protyle .img > span:nth-child(2) { + cursor: pointer; +} + // 导出 html 不需要编辑样式 .protyle-wysiwyg[data-readonly="false"] { span[data-type~="inline-math"], span[data-type~="tag"], .protyle-action__language, - .img > span:nth-child(2), .render-node { cursor: pointer; } @@ -609,6 +601,12 @@ background-color: var(--b3-theme-surface-lighter); } + + .img:hover .protyle-action__drag, + .iframe:hover .protyle-action__drag { + display: inline-block; + } + .code-block .protyle-action { -webkit-user-modify: read-only; @@ -671,6 +669,15 @@ background-color: transparent; } + .av__cell { + cursor: inherit; + + &text--url, + &assetimg { + cursor: pointer; + } + } + .av__cell[data-block-id] > .block__icon[data-type="copy"] { display: block; }