Problem/Motivation
We identified a couple of issues and regressions regarding the drag & drop handles, some related to #3112668 and some not.
- The handles are vertically misaligned
- The handles horizontal width was increased and they take more horizontal space than needed
- The change (*) indicator is misaligned and looks broken
Proposed resolution
Fix the issues identified above.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Patch #10 - claro.png | 68.12 KB | sasanikolic |
| #10 | Patch #10 - seven.png | 44.59 KB | sasanikolic |
| #10 | 3125662-drag-drop-handles-improvements-10.patch | 2.11 KB | sasanikolic |
| #10 | 3125662-drag-drop-handles-improvements-5-10-interdiff.txt | 1.15 KB | sasanikolic |
| #6 | 3125662-drag-drop-handles-improvements-6.patch | 2.27 KB | pivica |
Comments
Comment #2
sasanikolic commentedComment #3
sasanikolic commentedHere is the patch with the proposed improvements:
Attaching the patch with the screenshots of Claro ad Seven theme.
Comment #4
sasanikolic commentedNote that I tried to replicate the solution of Claro for the * display (which increases the horizontal space when * is added), but could not solve it with flex or display:table, as then there was no way to vertically center the handle on expanded text/image paragraphs. Claro has manipulated the markup with an extra div wrapper for that solution.
Comment #5
sasanikolic commentedHere is another small fix for the alignment improvement.
Comment #6
pivica commentedChecked the code changes and tested visually, looks good.
> Note that I tried to replicate the solution of Claro for the * display
Not sure what do you mean, but i guess we could centre * a bit more, tried that and it looks nicer:
What do you think @sasanikolic?
Comment #9
berdirI had that already committed but apparently the * is then over the paragraph type in claro with that.
Comment #10
sasanikolic commentedI'd also like to fix this with flex, but i noticed that this definition in the patch #6 breaks too many things, the arrows are not centered in claro and the arrows overlap with the content (in claro, core issue where 3 arrows are displayed - not sure what's the status with that issue).
I adapted the styles for some better alignment and the focus area centering for Claro in this patch.
Can you test again @pivica?
Comment #11
pivica commentedTested against Seven and Claro in 8.9.2.
Noticed that '*' sign is not centered any more in Seven but it is also not centered with patch from #6, probably something else changed somewhere else so that is fine.
Claro looks better with latest patch from #10. The only problem is that Claro is defining width: 1.5rem for '*' sign which is moving the whole column a bit more to the right:
This is something that Claro do so i guess they have a reason for this. Maybe we want to consider later to make this 1.5rem smaller because we do need horizontal space as much as possible especially for the small screens:
With Claro `min-width: 1.5rem` on `.tabledrag-cell--only-drag .tabledrag-changed` element (notice we are overflowing to the right):
Without 1.5rem min-width:
But i guess we should check all this when we switch to D9, because Claro in 8.9.2 is still marked as experimental - maybe they fixed all this things in D9?
Comment #13
berdirCommitted, thanks.