Fix layout bugs in documentation