Skip to content

Commit 901fbf2

Browse files
Fix workflow iframe embed collapsing on resize (#2295)
* trying to fix workflow iframe embed collapsing issue * revert back to lazy loading for page load time * fix min width to 768px --------- Co-authored-by: Paweł Pęczek <146137186+PawelPeczek-Roboflow@users.noreply.github.com>
1 parent f895a7b commit 901fbf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

development/docs/workflows_gallery_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def generate_preview_iframe(workflow_name_in_app: str, workflow_definition: dict
234234
)
235235
human_readable_name = workflow_name_in_app.replace("-", " ")
236236
return (
237-
f'<div style="height: 768px;">'
237+
f'<div style="height: 768px; min-height: 400px; min-width: 768px; overflow: hidden;">'
238238
f'<iframe src="https://app.roboflow.com/workflows/embed/{iframe_token}?showGraph=true" '
239239
f'loading="lazy" title="Roboflow Workflow for {human_readable_name}"'
240240
f' style="width: 100%; height: 100%; min-height: 400px; border: none;"></iframe></div>'

0 commit comments

Comments
 (0)