Currently, I am facing a challenge with a menu containing list items. The designer's requirement is to insert a line above the items if they break into two lines on smaller screens. This line should extend across 100% of the ul width, even if the second row of list items is shorter. The expected outcome can be seen in this image - only with the addition of a grey line above the list items.
https://i.sstatic.net/1SBsV.png
I have been experimenting with it here by attempting to utilize a :pseudo element, but so far, I have not succeeded in achieving the desired result of having the grey line from the second row span 100% of the width.
Does anyone have suggestions or solutions?