I want to create an atlas legend with the option "Only show items inside current atlas feature". This works fine.
But for the legend title I want a black background. So far, I used a separate item for the title. When selecting the atlas features dynamically, the legend width is changing as well.
Is there a variable such as width that I could use as width for the title element? Or could I draw only the legend title background black?