fix(app-headless-cms): fix dynamic zone template edit dialog and description overflow - #5564
Merged
Pavel910 merged 1 commit intoAug 7, 2026
Conversation
…ription overflow - Lift TemplateDialog state from DynamicZoneTemplate to DynamicZone parent so the edit dialog renders outside the Accordion and opens regardless of whether the accordion item is collapsed - Use defaultOpen instead of open on Accordion.Item to keep it uncontrolled after parent re-renders - Remove truncate from TemplateListItem description to allow text wrapping in list view - Add line-clamp-2 to TemplateGridItem description to limit grid card height while still showing meaningful text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
DynamicZone.tsx— lifttemplateToEditstate here; renderTemplateDialogoutside theAccordionso it mounts regardless of accordion stateDynamicZoneTemplate.tsx— replace internal dialog state withonEditTemplatecallback to parent; usedefaultOpeninstead ofopenso the accordion stays uncontrolled after parent re-rendersTemplateListItem.tsx— removetruncatefrom description to allow natural text wrapping in list viewTemplateGridItem.tsx— addline-clamp-2to description to keep grid cards uniformTest plan