Skip to content

feat(media): add max size mode#778

Open
oOOoutsiderOOo wants to merge 1 commit intoamnweb:mainfrom
oOOoutsiderOOo:feat/media-max-mode
Open

feat(media): add max size mode#778
oOOoutsiderOOo wants to merge 1 commit intoamnweb:mainfrom
oOOoutsiderOOo:feat/media-max-mode

Conversation

@oOOoutsiderOOo
Copy link
Copy Markdown

Added a new option to set a fixed width for the media widget. Using size_mode: "auto" it behaves as normal, following the label width. When setting size_mode: "max", it renders at max_field_size width regardless of the actual label width.

@Video-Nomad
Copy link
Copy Markdown
Contributor

Video-Nomad commented Mar 12, 2026

Thanks for the PR!

Is there a way to make this work with stylesheet alone?
This will set the fixed width of the label, but now that I test it it does not behave reliably, so I get where this PR comes from.

.media-widget .label {
    min-width: 400px;
    max-width: 400px;
}

Would be great if we could control that via stylesheet alone.

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.

2 participants