mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 13:49:58 +01:00
fix(webview): layout issues when when no webviewSrc
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
.note-detail-web-view {
|
.note-detail-web-view {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
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;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function WebViewContent({ src }: { src: string }) {
|
|||||||
|
|
||||||
function WebViewHelp() {
|
function WebViewHelp() {
|
||||||
return (
|
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>
|
<h4>{t("web_view.web_view")}</h4>
|
||||||
<p>{t("web_view.embed_websites")}</p>
|
<p>{t("web_view.embed_websites")}</p>
|
||||||
<p>{t("web_view.create_label")}</p>
|
<p>{t("web_view.create_label")}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user