Fix alignment of description diff history delete button
requested to merge 476552-remove-description-history-button-alignment-is-off-for-work-item-description-diff into master
What does this MR do and why?
Replace custom scss with tailwind util classes and fix alignment of "Remove description hustory" button (it seems to have been put out of alignment when top and bottom margin was added to its sibling <pre>
).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
Work items
- Create a new task on a issue
- Open the task in a new tab
- Add a "hello world" to the task's description
- Click
Compare with previous version
on the Activity feed item about the description edit - The button will be 4px from the top, right and bottom edges of the gray diff box. The diff box is only tall enough to accommodate the single line of text.
- Copy the URL and open it in an incognito window
- Repeat step 4 above
- You will see that the delete button does not appear, and the diff box is only tall enough to contain the single line of diff text.
- Close the incognito window.
- In the tab you were in for steps 3-6, edit the description again and add several lines of text.
- Repeat step 4 above.
- You will see that the remove button is the same distance from the top and right edges of the gray diff box.
Legacy issuables and MRs
Legacy issueables and MRs use the same component, so it is not necessary to test in both places.
Create either a legacy issuable or an MR with a blank description, then repeat steps 3 through 12 above with the legacy issuable or MR.
Related to #476552
Edited by Chad Lavimoniere