selfhostable, read-only reddit client

Feat: Card View Restrict inline image links width to a reasonable size

Changed files
+5 -1
src
mixins
public
+1 -1
src/mixins/postUtils.pug
··· 60 60 var result = html; 61 61 matches.forEach((match) => { 62 62 // Replace each occurrence with an actual img tag 63 - result = result.replace(match[0], '<a href="' + match[1] + '"><img src="' + match[1] + '"></a>'); 63 + result = result.replace(match[0], '<a href="' + match[1] + '"><img class="inline" src="' + match[1] + '"></a>'); 64 64 }) 65 65 66 66 return result;
+4
src/public/styles.css
··· 809 809 border-radius: 2px; 810 810 border: 4px solid var(--sticky-color); 811 811 } 812 + 813 + .inline { 814 + max-width: 100%; 815 + }