Hexo-theme-next: Tabs tag overflow bug

Created on 15 Mar 2019  ·  9Comments  ·  Source: theme-next/hexo-theme-next

Hi to all.

To reproduce the bug you need to open the page "Getting Started" on mobile device. Here is my screenshot:

IMG_20190315_212828

Solved 🛠 Improvement

Most helpful comment

How about tabs like this:
下载
Using float: left

All 9 comments

Related to screen width? I'm not sure.

Reproduced on my iPhone ...
IMG_1177
But it looks fine in Chrome's simulator... don't know why
屏幕快照 2019-03-16 上午11 48 10

@stevenjoezhang reproduced in simulator responsive mode, drag screen...

https://github.com/theme-next/hexo-theme-next/blob/20abf291fb24c92ed18f3393ea7b79ae53fdf7af/source/css/_common/components/tags/tabs.styl#L13-L17

Flex:
image

Block:
image

And other borders & marigns in this file...


But I think about that and it seems will be better somehow to determine tabs width & counts and if width of this values longer then viewport width → set tabs as block; if not → stay as is, in flex style.

How about tabs like this:
下载
Using float: left

How about tabs like this:
下载
Using float: left

Seems good too. Need just to fix this bug.

Was this page helpful?
0 / 5 - 0 ratings