Block Grid: Fix inline create button width not updating on workspace resize (closes #22527)#22928
Conversation
|
Claude finished @engijlr's task in 3m 18s —— View job PR ReviewTarget: Adds a Important
Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestions. Labels applied: |
AndyButland
left a comment
There was a problem hiding this comment.
Works nicely @engijlr - I've tested, replicate the issue before the fix and confirmed that it's resolved afterwards.
|
Cherry picked into |
Summary
<uui-button-inline-create>element had its width measured once at render time and applied as an inline style, which was never updated when the workspace was resizedResizeObserveron the layout container to re-measure and update the width whenever the container changes sizedisconnectedCallbackto disconnect the observerHow to test:
Fixes #22527