Skip to content

Build your personal knowledge base with Trilium Notes

fix(doc): width on mobile with images

Elian Doranbf342f7bcfb7
diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts
index 2e8b2ab6fa..ae61650278 100644
--- a/src/public/app/widgets/type_widgets/doc.ts
+++ b/src/public/app/widgets/type_widgets/doc.ts
@@ -33,6 +33,15 @@ const TPL = `<div class="note-detail-doc note-detail-printable">
margin: 0;
padding-bottom: 0.25em;
}
+
+ img {
+ max-width: 90vw;
+ height: auto;
+ }
+
+ td img {
+ max-width: 40vw;
+ }
</style>
<div class="note-detail-doc-content"></div>