retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.02k stars 201 forks source link

Tabs overflow if screen width is too narrow #587

Open ricky8k opened 11 months ago

ricky8k commented 11 months ago

If the screen width is too narrow, additional tabs will protrude out of the tab area, looking like this:

Using four tabs or less doesn't seem to have a problem, as Retype seems to adjust vertical space to accommodate for it. This issue occurs when more tabs are used and typically on mobile devices (due to their narrow screen sizes), but is also a problem with a narrow browser window, as seen here:

I suggest that one way to approach this problem would be to implement a horizontal scrollbar for the tabs. This scrollbar would only appear whenever the screen width is too narrow:

Using a horizontal scrollbar