In case anyone comes across this in the future, the original solutions weren’t working for me (maybe an update broke them?) The following seems to be working for me for now:
/* Wrap long nav text*/
.nav-file-title,
.nav-folder-title,
.nav-file-title-content,
.nav-folder-title-content {
white-space: normal;
width: auto;
}
/* Indent wrapped text */
.nav-file-title-content,
.nav-folder-title-content {
margin-left: 10px;
text-indent: -10px;
}
Bonus: I also wrapped the titles in my editor, since I frequently have really long ones. It’s a bit rough but it works:
/* Wrap title in editor */
.view-header {
height: auto;
}
.view-header-title {
overflow: auto;
line-height: revert;
white-space: normal;
padding-top: .25em;
}