oleeskild / obsidian-digital-garden

MIT License
1.36k stars 125 forks source link

Transcluded SVG images overflow viewport on mobile devices #504

Open ThatOtherAndrew opened 11 months ago

ThatOtherAndrew commented 11 months ago

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?

dclausen01 commented 10 months ago

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) */
    }