mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
fix(webview): layout issues when when no webviewSrc
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
.note-detail-web-view {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.note-detail-web-view > * {
|
||||
.note-detail-web-view .note-detail-web-view-help {
|
||||
margin: 50px;
|
||||
padding: 20px 20px 0 20px;
|
||||
}
|
||||
|
||||
.note-detail-web-view > iframe,
|
||||
.note-detail-web-view > webview {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ function WebViewContent({ src }: { src: string }) {
|
||||
|
||||
function WebViewHelp() {
|
||||
return (
|
||||
<Alert className="note-detail-web-view-help" type="warning" style={{ margin: "50px", padding: "20px 20px 0px 20px;" }}>
|
||||
<Alert className="note-detail-web-view-help" type="warning">
|
||||
<h4>{t("web_view.web_view")}</h4>
|
||||
<p>{t("web_view.embed_websites")}</p>
|
||||
<p>{t("web_view.create_label")}</p>
|
||||
|
||||
Reference in New Issue
Block a user