mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:29:16 +00:00
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:
parent
d090f27346
commit
73bf5f328d
@ -79,7 +79,7 @@
|
||||
"Hidden": "非表示",
|
||||
"Hidden(reserved value)": "非表示(値の保持)",
|
||||
"Not required": "必須ではありません",
|
||||
"Value": "フィールド値",
|
||||
"Value": "値",
|
||||
"Disabled": "無効化",
|
||||
"Enabled": "有効化",
|
||||
"On": "有効化",
|
||||
|
@ -82,7 +82,7 @@
|
||||
"Hidden": "隐藏",
|
||||
"Hidden(reserved value)": "隐藏(保留值)",
|
||||
"Not required": "非必填",
|
||||
"Value": "字段值",
|
||||
"Value": "值",
|
||||
"Disabled": "禁用",
|
||||
"Enabled": "启用",
|
||||
"Problematic": "有问题",
|
||||
|
@ -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,
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user