Fix word-wrap on sidebar, related to #906

(cherry picked from commit ccfcab200ff283c02c730eb5795d6710e664e36b)