Comments (12)
@paranoidjk Thank you for the quick reply! Right now I'm using a really awkward css hack to kind of align it to the right:
.right-tabs-bar {
margin-left: 64%;
}
If you look closely, you can tell it's not actually aligned to the right. That's the closest I could get it to the edge though. I'm definitely not a CSS guy so if anyone has any suggestions I'm all ears! Otherwise, I could tinker with the code and submit a pull request so this (wonderful!) package supports right aligned tabs natively.
from tabs.
hmm, i understand your problem, But right now i do not have time to do this feature, you can use css to do it temporarily.
And PR is welcome.
from tabs.
Anyone?
from tabs.
@method-x Looks like you are free to make a pull request with it.
from tabs.
interesting,i think there actually is no something what we call direction
of the tabs component.
maybe you can just simply set the defaultActiveKey
to be the last tabKey?
from tabs.
close for no response.
from tabs.
@paranoidjk The defaultActiveKey is already set to the last tab. For a live demonstration of what I mean, go here. For the time being, I had to resort to a CSS hack that still doesn't quite get it right. :/
from tabs.
@method-x looks fine? can you give a codepen demo?
from tabs.
@paranoidjk I will take a peek at the code first chance I get and submit a pull request. In the mean time, any idea how to do this with CSS? Floating right doesn't work.
from tabs.
because ScrollInkTabBar
set width to 9999px for scroll https://github.com/react-component/tabs/blob/master/assets/index/top.less#L21, float right won't work
from tabs.
has a better way of doing this been implemented already?
from tabs.
Works perfectly - <Tabs value={1} style={{ float: 'right' }}></Tabs>
from tabs.
Related Issues (20)
- ModalForm with tab closes when clicking ok HOT 1
- alpha 版本在 npm 被错误打上了 latest tag HOT 1
- import {TabPane} from 'rc-tabs' throws an error in typescript HOT 1
- TabPane doesn't shown HOT 2
- 可以为多个tab增加一个group吗?
- 设置 inkBar 为 false 无法隐藏 inkBar HOT 3
- 响应式显示...,在计算的时候,如果标签头存在请求到的数据,那么在计算时是不是有问题,部分电脑存在固定几个标签,没有溢出也显示了... HOT 2
- Can not import "TabPane" HOT 6
- ENOENT: no such file or directory ~demos\:id
- tabListRef.current is null HOT 4
- inkStyle calculation error
- tabs新增新的tab后滚动条没有滚动到激活状态的标签上 HOT 1
- key值不符合document.querySelector语法时错误
- Tabs scroll slowly in firefox some version such as 72.0
- RC-Tabs no longer working HOT 2
- RC-Tabs no longer working HOT 4
- How to disable the initial animation on `inkBar`?
- The version of 12.13.1 has no export TabPanel, but the readme document did not update in usage section. (12.13.1版本未导出Tabpanel,但文档里用法部分却没更新)
- Tabs 的 Label 可以被 tab 选中,希望可以通过属性来控制 tabIndex
- Typescript error: Property 'children' does not exist on type 'IntrinsicAttributes & TabsProps & RefAttributes<HTMLDivElment> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabs.