golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

Search results with long paths overflow on mobile Chrome #595

Open achook opened 5 years ago

achook commented 5 years ago

The search results can overflow the screen when the paths of the packages are long but shorter than 45 characters. Example and the long path (demagnle is exactly 45 chars long)

Solution: Change the 45 to a smaller value (10?) or remove the condition entirely to allow browsers to break the shorter paths https://github.com/golang/gddo/blob/574849d519ec3acb591fc5620ee0aa3ea48081e0/gddo-server/template.go#L329-L336

Note: Happens only on Chrome, Firefox breaks lines on every "/" automatically. Example