fix: initial hidden state for shadow-box component (#5639)

* Ensure shadow-box starts hidden on initial render.

* add comment to explain not obvious style fix

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
dhlidongming 2025-01-20 20:52:30 +08:00 committed by GitHub
commit 6b02ef0a70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -630,6 +630,8 @@ export default function Page({ view }: { view?: boolean }): JSX.Element {
backgroundColor: `${shadowBoxBackgroundColor}`,
opacity: 0.7,
pointerEvents: "none",
// Prevent shadow-box from showing unexpectedly during initial renders
display: "none",
}}
></div>
</div>