obsidian-digital-garden icon indicating copy to clipboard operation
obsidian-digital-garden copied to clipboard

Transcluded SVG images overflow viewport on mobile devices

Open ThatOtherAndrew opened this issue 1 year ago • 1 comments

Related to #429, it appears that the viewport overflow issue still affects SVG images. I had a browse in the commit history and am not too sure where the fix for bitmap images was situated, but I think https://github.com/oleeskild/obsidian-digital-garden/commit/aec29b8657f1c7a7076cc2cb090cf116de2daf14 may be relevant?

ThatOtherAndrew avatar Nov 07 '23 14:11 ThatOtherAndrew

I use a little Workaround for now, I don't know if it helps (really no solution, thou): I added some custom CSS:

.content svg {
        width: 100%; /* Set SVG to 100% width relative to .content */
        height: auto; /* Set height to auto-fit (keep apsect ratio) */
    }

dclausen01 avatar Nov 16 '23 10:11 dclausen01