I want the full path to be displayed in the header-line, but if the window is too narrow, it won't span multiple lines.
ok, but since Dired is able to span multiple lines, why can't header-line do it, as well?
A simple compromise could be breadcrumb-mode; when the buffer is too narrow it abbreviates the file name, for example:
my-project/src/domain/value-object/my-cool-object becomes my-project/s/d/v/my-cool-object
truncate-linesis nil), but that's not using the header-line. It's just the first line in the Dired buffer.