Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Use registered secondary media selection screen #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sebobo
Copy link

@Sebobo Sebobo commented Oct 26, 2024

Resolves: #50

With this change any registered MediaSelectionScreen secondary editor is used instead of the fixed dependency on the media browser. This way the Flowpack.Media.UI will be used when it is installed a project.

This also means that no event handler is required anymore for selection as the component provides this already. In the future also constraints would be supported this way as they can be passed to the component.

The only "hotfix" is that the MediaBrowser still needs some custom styling to remove the padding like before.

After this change the 2 editors look like this:

MediaBrowser:

CleanShot 2024-10-26 at 10 55 01@2x

Media.UI:

CleanShot 2024-10-26 at 10 57 02@2x

Resolves: sitegeist#50

With this change any registered MediaSelectionScreen secondary editor is used
instead of the fixed dependency on the media browser.
This way the Flowpack.Media.UI will be used when it is installed a project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for new Media UI
1 participant