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

[5.x] Add formStackSize option for inline publish form stacks #11274

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request adds a $formStackSize property to the Relationship fieldtype class, allowing developers to customize the size of the stack the inline publish form gets rendered in.

The property accepts three values: narrow, half and full.

protected $formStackSize = 'narrow';

Use case

In my Simple Commerce addon, I have a relationship fieldtype with a single field. It doesn't make sense to take up 3/4ths of the screen with a stack with one input, so it would be nice to use the narrow option in this case.

@jasonvarga jasonvarga changed the title [5.x] Add $formStackSize option for inline publish form stacks [5.x] Add formStackSize option for inline publish form stacks Dec 18, 2024
@jasonvarga jasonvarga merged commit 78299c9 into 5.x Dec 18, 2024
20 checks passed
@jasonvarga jasonvarga deleted the inline-publish-form-stack-size branch December 18, 2024 21:35
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