zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

(Bug report) SVG zooming in 0.61 #4221

Open chncho opened 1 year ago

chncho commented 1 year ago

Trilium Version

0.60.4

What operating system are you using?

Ubuntu

What is your setup?

Local + server sync

Operating System Version

Ubuntu 22.04

Description

When I upgrade to 0.60.4 from 0.59.4:

Here is an svg image created by drawio extension, it is display ok at the list page , see the test.drawio.svg . image

But will not display in detail page(Version 0.59.4 is ok). image

Error logs

No response

SiriusXT commented 1 year ago

I am using 61.5-beta and the display is normal. I remember that the display was normal in 60.4. It may be that the picture is too large to be displayed. You can try to zoom in and out by pressing ctrl and the scroll wheel. In addition, what is the version of the draw widget plug-in you are using?

chncho commented 1 year ago

I am using 61.5-beta and the display is normal. I remember that the display was normal in 60.4. It may be that the picture is too large to be displayed. You can try to zoom in and out by pressing ctrl and the scroll wheel. In addition, what is the version of the draw widget plug-in you are using?

Zoom in by press ctrl and scroll is ok, but at 59.4 need not to do this , drawio version is :

/*
trilium-drawio
https://github.com/SiriusXT/trilium-drawio
version:0.3.1
*/

When the svg is to big , this problem is happen : image

SiriusXT commented 1 year ago

图片 I tried using drawio to draw a large picture and it still displayed normally. Can you send me your picture to facilitate further debugging?

zadam commented 1 year ago

0.61 has an upgraded zoom library. It is possible it behaves differently. It would help if you could share an example of the SVG causing problems.

chncho commented 1 year ago

0.61 has an upgraded zoom library. It is possible it behaves differently. It would help if you could share an example of the SVG causing problems.

I found that by holding down ctrl and the wheel, zooming in to a certain extent, it turned into a white screen, and then zooming out to a certain extent, it displayed normally, regardless of the size of the svg.