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

[Bard Fieldtype] Config option to set min-height #1254

Open
JorisOrangeStudio opened this issue Oct 31, 2024 · 0 comments
Open

[Bard Fieldtype] Config option to set min-height #1254

JorisOrangeStudio opened this issue Oct 31, 2024 · 0 comments

Comments

@JorisOrangeStudio
Copy link

Currently all Bard fields have the same min-height.

We would love to see an option where this can be set per field, like the HTML textarea has <textarea rows="2">. A fieldtype config option to set the amount of initial rows (min-height) of the Bard field.

Bard is extensively used for headings (see example below), but this can get 'messy' very quickly, because of the redundant whitespace for heading and subheading fields. A heading is never more than 2 lines of content. The use of text fields is not ideal for headings, as with Bard the user is able to select what heading-type it should be (h1, h2, ...).

Using inline mode disables the ability to select heading types, but improves the UI by decrease the height of the fields. It cleans up the nested replicators a lot if this whitespace is removed. Tried to do this with CSS, but it is hard to target only specific bard fields, so maybe a general config option per field will be better.

Current:
image

Desired:
image

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

No branches or pull requests

1 participant