Skip to content

Commit

Permalink
Merge branch 'master' into feat/statistic-support-html-attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Jan 25, 2024
2 parents d4c5bca + 1678d71 commit 83ac100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/tabs/demo/custom-tab-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';

import type { TabsProps } from 'antd';
import { Tabs, theme } from 'antd';
import StickyBox from 'react-sticky-box';
Expand All @@ -19,7 +18,7 @@ const App: React.FC = () => {
token: { colorBgContainer },
} = theme.useToken();
const renderTabBar: TabsProps['renderTabBar'] = (props, DefaultTabBar) => (
<StickyBox offsetTop={0} offsetBottom={20} style={{ zIndex: 1 }}>
<StickyBox offsetTop={64} offsetBottom={20} style={{ zIndex: 1 }}>
<DefaultTabBar {...props} style={{ background: colorBgContainer }} />
</StickyBox>
);
Expand Down

0 comments on commit 83ac100

Please sign in to comment.