mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-31 14:50:26 +08:00
fix: tabs font-size
This commit is contained in:
parent
03514de2b9
commit
29551df5ed
@ -51,7 +51,7 @@ export default class Group extends Component {
|
||||
</Sider>
|
||||
<Layout>
|
||||
<Content style={{ height: '100%', margin: '0 24px 0 16px', overflow: 'initial', backgroundColor: '#fff' }}>
|
||||
<Tabs type="card" size="large" className="m-tab" style={{ height: '100%' }}>
|
||||
<Tabs type="card" className="m-tab tabs-large" style={{ height: '100%' }}>
|
||||
<TabPane tab="项目列表" key="1"><ProjectList /></TabPane>
|
||||
{this.props.currGroup.type === 'public' ? <TabPane tab="成员列表" key="2"><MemberList /></TabPane> : null}
|
||||
{["admin", "owner", "guest", "dev"].indexOf(this.props.curUserRoleInGroup) > -1 || this.props.curUserRole === "admin" ? <TabPane tab="分组动态" key="3"><GroupLog /></TabPane> : ""}
|
||||
|
@ -94,7 +94,7 @@ class Interface extends Component {
|
||||
<Layout style={{minHeight: 'calc(100vh - 156px)', marginLeft: '24px', marginTop: '24px'}}>
|
||||
<Sider style={{ height: '100%' }} width={300}>
|
||||
<div className="left-menu">
|
||||
<Tabs type="card" size= "large" activeKey={activeKey} onChange={this.onChange}>
|
||||
<Tabs type="card" className="tabs-large" activeKey={activeKey} onChange={this.onChange}>
|
||||
<Tabs.TabPane tab="接口列表" key="api">
|
||||
|
||||
</Tabs.TabPane>
|
||||
|
@ -127,7 +127,7 @@ class Content extends Component {
|
||||
|
||||
plugin.emitHook('interface_tab', InterfaceTabs);
|
||||
|
||||
const tabs = <Tabs size="large" onChange={this.onChange} activeKey={this.state.curtab} defaultActiveKey="view" >
|
||||
const tabs = <Tabs className="tabs-large" onChange={this.onChange} activeKey={this.state.curtab} defaultActiveKey="view" >
|
||||
{Object.keys(InterfaceTabs).map(key=>{
|
||||
let item = InterfaceTabs[key];
|
||||
return <TabPane tab={item.name} key={key}></TabPane>
|
||||
|
@ -28,8 +28,8 @@ class Setting extends Component {
|
||||
|
||||
return (
|
||||
<div className="g-row">
|
||||
<Tabs size="large" type="card" className="has-affix-footer">
|
||||
<TabPane tab="项目配置" key="1">
|
||||
<Tabs type="card" className="has-affix-footer tabs-large">
|
||||
<TabPane tab="项目配置" key="1" >
|
||||
<ProjectMessage projectId={+id}/>
|
||||
</TabPane>
|
||||
<TabPane tab="环境配置" key="2">
|
||||
|
@ -172,6 +172,10 @@ em {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.tabs-large .ant-tabs-nav-container{
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.ant-tree li .ant-tree-node-content-wrapper{
|
||||
padding: 3px 5px;
|
||||
height: unset;
|
||||
|
@ -107,7 +107,7 @@
|
||||
"fast-sass-loader-china": "1.2.5",
|
||||
"ghooks": "^2.0.0",
|
||||
"happypack": "^4.0.0-beta.5",
|
||||
"json-schema-editor-visual": "^1.0.2",
|
||||
"json-schema-editor-visual": "^1.0.3",
|
||||
"less": "^2.7.2",
|
||||
"less-loader": "^4.0.5",
|
||||
"node-sass-china": "4.5.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user