Skip to content

Commit

Permalink
Don't open FLD library HUDs in the top orientation
Browse files Browse the repository at this point in the history
Resolves #16747
  • Loading branch information
brandonkelly committed Feb 20, 2025
1 parent fb53e9a commit 3eca75d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where scrollable panes weren’t automatically scrolling when dragging objects near their edges. ([#16738](https://github.com/craftcms/cms/issues/16738))
- Fixed a bug where field layout designers’ library HUDs could open above the “Add” button, hiding the tab contents. ([#16747](https://github.com/craftcms/cms/discussions/16747))

## 5.6.8 - 2025-02-19

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/web/assets/cp/src/js/FieldLayoutDesigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ Craft.FieldLayoutDesigner.Tab = Garnish.Base.extend({
hudClass: 'hud fld-library-hud',
listenToMainResize: false,
showOnInit: false,
orientations: ['right', 'bottom', 'left'],
});
hud.on('show', () => {
this.designer.$libraryContainer.appendTo(hud.$main);
Expand Down

0 comments on commit 3eca75d

Please sign in to comment.