fix: image viewer flick

This commit is contained in:
jialin
2025-03-10 17:11:32 +08:00
parent 12707793b1
commit c0988da176
4 changed files with 82 additions and 10 deletions
+3 -4
View File
@@ -115,9 +115,7 @@ const SingleImage: React.FC<SingleImageProps> = (props) => {
)}
<span
className="thumb-img"
style={{
...thumImgWrapStyle
}}
style={{ ...thumImgWrapStyle }}
ref={imgWrapper}
>
<>
@@ -158,10 +156,11 @@ const SingleImage: React.FC<SingleImageProps> = (props) => {
}}
>
<AutoImage
style={{ objectFit: 'cover' }}
preview={preview}
autoSize={autoSize}
src={dataUrl}
width={imgSize.width || 100}
width={imgSize.width || '100%'}
height={imgSize.height || 100}
onLoad={handleOnLoad}
/>
@@ -1,5 +1,6 @@
.markdown-viewer {
font-family: var(--font-family) !important;
word-wrap: break-word;
.hr {
border: none;