fix line-wrapping and expanding textbox issue in snippet overlay