fix(webview): layout issues when when no webviewSrc
Some checks are pending
Checks / main (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Documentation / Build and Deploy Documentation (push) Waiting to run
Dev / Test development (push) Waiting to run
Dev / Build Docker image (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile) (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile.alpine) (push) Blocked by required conditions
/ Check Docker build (Dockerfile) (push) Waiting to run
/ Check Docker build (Dockerfile.alpine) (push) Waiting to run
/ Build Docker images (Dockerfile, ubuntu-24.04-arm, linux/arm64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.alpine, ubuntu-latest, linux/amd64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v7) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v8) (push) Blocked by required conditions
/ Merge manifest lists (push) Blocked by required conditions
playwright / E2E tests on linux-arm64 (push) Waiting to run
playwright / E2E tests on linux-x64 (push) Waiting to run
Deploy website / Build & deploy website (push) Waiting to run

This commit is contained in:
Elian Doran 2025-12-08 14:21:59 +02:00
parent baee2cd6b2
commit a6682be251
No known key found for this signature in database
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>