wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.36k stars 192 forks source link

Improves drag and drop sorting of tree views #1154

Closed der-On closed 3 months ago

der-On commented 3 months ago

Tested on the static pages tree.

This PR improves the drag n drop sorting of tree views, especially for large static page trees.

The main issues with the previous situation have been the pages getting very height if they have long URLs, pages resizing once dragging started and pages staying expanded once dragged. To drop pages precicesly they need to be collapsed to take as little space as possible, so one can concentrate on actually finding the right spot to drop on.

This PR does the following:

This PR does not include the build CSS. This must be build using php artisan winter:util compile less to see the result.

mjauvin commented 3 months ago

PR should ALWAYS include the compiled css/js files (if they are setup)

mjauvin commented 3 months ago

Can we see a before/after screenshot for this?

der-On commented 3 months ago

Here is a screenshot showing the changes:

Before:

grafik

After:

grafik

der-On commented 3 months ago

Added the compiled css

der-On commented 3 months ago

@mjauvin Please have a look.

mjauvin commented 3 months ago

Looks cleaner for sure.