diff --git a/.changeset/wet-chefs-stare.md b/.changeset/wet-chefs-stare.md new file mode 100644 index 0000000000..835365e6d9 --- /dev/null +++ b/.changeset/wet-chefs-stare.md @@ -0,0 +1,5 @@ +--- +"@scow/lib-web": patch +--- + +暂时解决 tab 标签在最右侧时的抖动问题 diff --git a/libs/web/src/components/FilterFormContainer.tsx b/libs/web/src/components/FilterFormContainer.tsx index 9293daef86..a42a036921 100644 --- a/libs/web/src/components/FilterFormContainer.tsx +++ b/libs/web/src/components/FilterFormContainer.tsx @@ -24,6 +24,13 @@ export const FilterFormContainer = styled.div` margin: 4px; max-width: 100%; } + +`; + +const NoShakeTab = styled(Tabs)` + .ant-tabs-nav-operations { + display: none !important; + } `; const TabFormContainer = styled.div` @@ -41,7 +48,7 @@ export const FilterFormTabs: React.FC = ({ button, tabs, onChange, }) => { return ( - 0 ? tabs[0].title : ""} size="small" tabBarExtraContent={button} @@ -56,6 +63,6 @@ export const FilterFormTabs: React.FC = ({ )) } - + ); };