Fix markdown header for uses with restricted items
What does this MR do and why?
The Markdown editor header has dividers that are conditionally rendered in a block with their preceding button, but they do not take into account use cases where later buttons may be missing. This MR adds logic to fix use cases like the Incident timeline text input.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Check out this branch locally
- Visit an incident (or create one)
- Add a timeline event
You should see that the unnecessary starting and ending dividers that are present on prod are not there.
Related to #425467 (closed)
Edited by Chad Lavimoniere