fix: popover subform not working in public forms (#6157)

This commit is contained in:
gchust 2025-02-05 21:50:14 +08:00 committed by GitHub
parent ad7a65c3e4
commit 01ea8294ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -193,7 +193,14 @@ export function AdminPublicFormPage() {
</Dropdown>
</Space>
</div>
<div style={{ maxWidth: 800, margin: '100px auto' }}>
<div
style={{
maxWidth: 800,
margin: '100px auto',
position: 'relative',
zIndex: 0 /** create a new z-index context */,
}}
>
<VariablesProvider
filterVariables={(v) => {
return !['$user', '$nRole', '$nToken', '$nURLSearchParams'].includes(v.key);

View File

@ -243,7 +243,12 @@ function InternalPublicForm() {
}}
>
<div
style={{ maxWidth: 800, margin: '0 auto' }}
style={{
maxWidth: 800,
margin: '0 auto',
position: 'relative',
zIndex: 0 /** create a new z-index context */,
}}
className={css`
@media (min-width: 1025px) {
padding-top: 10vh;