fix overflow issue for Table of contents of left panel