-
Bug
-
Resolution: Fixed
-
Minor
-
Browser: Chrome 54.0.2840.98 (Official Build) (64-bit)
-
-
frank, Blue Ocean 1.2-beta2, Blue Ocean 1.2-beta3
Seems like this has changed somewhat since the new headers
Original request
Check the attached screenshot to see a closeup of the problem.
You can reproduce it here:
https://ci.blueocean.io/blue/organizations/jenkins/folders%2Fsubfolder%2Fthirdfolder%2FhelloPipeline/activity
- is duplicated by
-
JENKINS-45267 GUI weirdness in folder
-
- Resolved
-
- links to
Having written this component, I'm happy to take on the fix for it at some point.
I think the cause of this problem is that wrapping the entire component in a Link component or anchor element is causing the odd alignment issue given how complex the nested content is. I remember fiddling with this for a long time and I am not confident it can handled cleanly in a cross-browser way. It would probably be easier to get consistent alignment if the component used a tags internally.
Unfortunately the a tags are typically React Router "Link" instances, and when I built the ExpandablePath component I did not want to couple it to React Router - especially since it would create a JDL -> react-router dependency.
However I think there be a better way to address this issue that still decouples it from React Router. Basically we could pass a "linkElement" prop inside that is the link element (either a React Router link, or a simple anchor element) that is cloned appropriately for each of the child elements.
Any thoughts sophistifunk?