web-mi
March 31, 2021, 12:57am
12
Hi,
i just added the resizing function and opened a PR.
strapi:master ← web-mi:resize-fields
opened 08:17PM - 30 Mar 21 UTC

<!--
Hello 👋 Thank you for submitting a pull request.
To help us merge your PR, make sure to follow the instructions below:
- Create or update the documentation. (Should be made against the documentation branch)
- Create or update the tests.
- Refer to the issue you are closing in the PR description - fix #issue
- Specify if the PR is in WIP (work in progress) state or ready to be merged
Please ensure you read through the Contributing Guide: https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md
-->
### What does it do?
- Cleanup content-manager (DraggedField to flex without absolute positioning, duplicated css, Tooltip.js not used/working anymore)
- Added resize function to edit view fields except dynamiczones and components (minSize: 2, maxSize: 12)
### Why is it needed?
Using 50% of the remaining space for a single dropdown or radio button makes editing complicated because much space is wasted.
### How to test it?
Edit view of any component. A new button is shown at the end of the fields. By dragging the element the field could be resized to any size between 2/12 and 12/12. 2/12 instead of 1/12 because 1/12 is to small for description and buttons. Maybe someone has an idea how to handle too small elements.
### Related issue(s)/PR(s)
Issues: #8094, #8950
Strapi Community Discussion:
https://forum.strapi.io/t/change-width-of-fields-on-edit-page/181
https://forum.strapi.io/t/columns-in-content-manager-detail-view/1011/2
The problem with “yarn build” is overriding the current columns is fixed too.
There was a function call which will append default sizes if the default size of an element has changed.
Maybe the idea was to update existing layouts with new default sizes but the default size is now applied on adding new fields so the update is not required i think.
3 Likes