Skip to content

Build your personal knowledge base with Trilium Notes

feat(share): improve webview layout

Elian Doran6322ca11c9cf
diff --git a/packages/share-theme/src/styles/content.css b/packages/share-theme/src/styles/content.css
index 07d691cb45..0749e7d098 100644
--- a/packages/share-theme/src/styles/content.css
+++ b/packages/share-theme/src/styles/content.css
@@ -54,17 +54,25 @@ body:not(.math-loaded) .math-tex {
visibility: hidden;
}
-body.type-webView #main {
- max-width: unset;
-}
+body.type-webView {
+ #main {
+ max-width: unset;
+ padding: 0;
+ }
-body.type-webView #content {
- display: flex;
- flex-direction: column;
- height: 100%;
-}
+ #content {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+
+ h1 {
+ display: none;
+ }
-iframe.webview {
- width: 100%;
- flex-grow: 1;
+ iframe.webview {
+ width: 100%;
+ flex-grow: 1;
+ border: 0;
+ }
+ }
}
\ No newline at end of file