Skip to content

Build your personal knowledge base with Trilium Notes

style(share): fit a shared image to the page until its viewer mounts

Elian Doran9ba298d6b5d5
diff --git a/packages/share-theme/src/content/app_view.css b/packages/share-theme/src/content/app_view.css
index 6d1e24ce88..3eb404c32a 100644
--- a/packages/share-theme/src/content/app_view.css
+++ b/packages/share-theme/src/content/app_view.css
@@ -28,10 +28,18 @@ body:has(#content.app-view) {
flex: 1;
min-height: 0;
+ justify-content: center;
+
> * {
flex: 1;
min-height: 0;
}
+
+ > img {
+ flex: 0 1 auto;
+ align-self: center;
+ object-fit: contain;
+ }
}
@media (max-width: 48em) {