fix(webview): layout issues when when no webviewSrc

This commit is contained in:
Elian Doran
2025-12-08 14:21:59 +02:00
parent baee2cd6b2
commit a6682be251
2 changed files with 10 additions and 3 deletions

View File

@@ -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%;

View File

@@ -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>