-
Notifications
You must be signed in to change notification settings - Fork 18
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
Enable collapsing of the first field of a group #22
Comments
I thing that better solutions is simply hide .acf-input (all input in collapsed row) by adding .collapsed-row .acf-table .acf-input { Maybe user can no longer see text:input behind gradient, but:
|
@onetrev Thanks for opening this. While flexible fields are a little more clear when completely collapsed, repeaters are completely indistinguishable when all fields are hidden. |
Hmmm. This was simple solution :D I think it is not super bad solution, because all rows have own index number. When i have lots of rows and i create new row, i want collapse earlier added rows, but I'm not interested in exactly what they contain (i only want improving my working space) Another solution may be:
|
@kartofelek007 I've considered max-height solutions in the past. Maybe I should swing back around and take a look at those again. It looks like there's always(??) an immediate descendant of |
I test idea with wrapper and for me its work very well. In ACF5 you must find each .acf-input:
In ACF4 you must find .inner:
and in styles (for both version):
I checked both versions (ACFPRO and acf 4.3.9) and its worked well. Maybe its good idea to hide some elements in collapse elements? For example in wysiwyg hide add-media-button and tabs? |
Glad to know that works well! I might see if I can find a way to do it without the At least in the readme, I wrote that the most recent version would be the last functionality improvement for ACF4. If it's as easy as you showed here, I might go back on that, but I don't necessarily plan on maintaining support for both 4 and 5. |
Why you don't want use wrapAll? |
Right now the first field doesn't collapse so if that is your own field or it is a really tall field the "collapsing" functionality doesn't really help you much.
I wonder if it wouldn't just be possible to collapse the entire table of the field group, because above it would still be the DIV with the group title, that should be enough right? Unless I'm missing something super obvious?
Thanks!
The text was updated successfully, but these errors were encountered: