From e7f8c00957fa4c558c84a8d279b9ded5e67db253 Mon Sep 17 00:00:00 2001 From: dekun Date: Tue, 12 May 2026 16:18:00 +0800 Subject: [PATCH] fix: iframe fills frame area to remove top black gap Co-authored-by: Cursor --- static/style.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/static/style.css b/static/style.css index 99022b8..ec5f544 100644 --- a/static/style.css +++ b/static/style.css @@ -118,15 +118,16 @@ a:hover { } .frame-wrap { + position: relative; flex: 1; - display: flex; - flex-direction: column; min-width: 0; + min-height: 0; background: #0a0e12; } .frame-placeholder { - flex: 1; + position: absolute; + inset: 0; display: flex; align-items: center; justify-content: center; @@ -135,10 +136,12 @@ a:hover { } .frame-wrap iframe { - flex: 1; + position: absolute; + inset: 0; width: 100%; + height: 100%; border: none; - background: #fff; + background: #0a0e12; } /* 登录页 */