mirror of
https://git.mirrors.martin98.com/https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-08-05 18:20:52 +08:00
auto height for html preview
This commit is contained in:
parent
fb60fbb217
commit
2e9e20ce7c
@ -99,7 +99,7 @@ export function HTMLPreview(props: { code: string }) {
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<iframe
|
||||
id={frameId}
|
||||
id={frameId.current}
|
||||
ref={ref}
|
||||
frameBorder={0}
|
||||
sandbox="allow-forms allow-modals allow-scripts"
|
||||
|
Loading…
x
Reference in New Issue
Block a user