Fixed some layout bugs with spanful texts