Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs 组件的size=small时的margin-right:0没有了,和default的样式几乎相同了 #8456

Closed
lixiaoyang1992 opened this issue Dec 5, 2017 · 5 comments

Comments

@lixiaoyang1992
Copy link
Contributor

Version

undefined

Environment

Mac os 10.12 ,chrome

Reproduction link

https://ant.design/components/tabs-cn/#components-tabs-demo-size

Steps to reproduce

直接能看到

What is expected?

间距小

What is actually happening?

间距很大,在窄的div中效果不好


不知道这是设计上修改了,还是忘了加

@afc163
Copy link
Member

afc163 commented Dec 5, 2017

是设计上修改了,如果在小空间场景中比较憋屈,可以自行样式覆盖。

@afc163
Copy link
Member

afc163 commented Dec 5, 2017

感觉 Tabs 可以加一个 gutter 属性(间距),更方便使用。

@lixiaoyang1992 来个 PR 发到 feature-3.1 分支如何?

@afc163 afc163 reopened this Dec 5, 2017
@lixiaoyang1992
Copy link
Contributor Author

@lixiaoyang1992
Copy link
Contributor Author

tab的div是在rc-tabs的 getTabs 生成的,直接在antd里面不能加上style,需要在rc-tabs那边也修改

@afc163
Copy link
Member

afc163 commented Dec 13, 2017

ping @lixiaoyang1992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants