fix: iframe block loses height when set to default (#4602)

* fix: iframe block loses height when set to default

* refactor: local improve
This commit is contained in:
Katherine 2024-06-08 12:57:14 +08:00 committed by GitHub
parent d090f27346
commit 73bf5f328d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@
"Hidden": "非表示",
"Hidden(reserved value)": "非表示(値の保持)",
"Not required": "必須ではありません",
"Value": "フィールド値",
"Value": "値",
"Disabled": "無効化",
"Enabled": "有効化",
"On": "有効化",

View File

@ -82,7 +82,7 @@
"Hidden": "隐藏",
"Hidden(reserved value)": "隐藏(保留值)",
"Not required": "非必填",
"Value": "字段值",
"Value": "值",
"Disabled": "禁用",
"Enabled": "启用",
"Problematic": "有问题",

View File

@ -93,7 +93,7 @@ export const Iframe: any = observer(
return (
<div
style={{
height: isNumeric(height) ? `${height}px` : height,
height: isNumeric(targetHeight) ? `${targetHeight}px` : targetHeight || '60vh',
marginBottom: '24px',
border: 0,
}}
@ -110,7 +110,7 @@ export const Iframe: any = observer(
display="block"
position="relative"
styles={{
height: isNumeric(targetHeight) ? `${targetHeight}px` : targetHeight,
height: isNumeric(targetHeight) ? `${targetHeight}px` : targetHeight || '60vh',
marginBottom: '24px',
border: 0,
}}