Skip to content

Commit

Permalink
style(filter-picker): 修复filter-picker样式问题 (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
huskylengcb authored Dec 20, 2021
1 parent a40b4a4 commit ac2938f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/legacy/base-picker/BasePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import List from '../list';
import { BasePickerProps } from './interfaces';
import SearchBar from '../search-bar';
import Alert from '../alert';
import TabNav, {Tab} from '../../tabs';
import TabNav, { Tab } from '../../tabs';
import defaultLocaleText from './locales/zh-CN';

function BasePicker({
Expand Down Expand Up @@ -50,9 +50,11 @@ function BasePicker({
</div>
)}
{tabNav && (
<TabNav style={{marginTop: '8px'}} onChange={tabNav.onChange} defaultValue="all">
{tabs}
</TabNav>
<div style={{ margin: 8 }}>
<TabNav onChange={tabNav.onChange} defaultValue="all">
{tabs}
</TabNav>
</div>
)}
<div className={`${prefixCls}__content`}>{content}</div>
{footer && <div className={`${prefixCls}__footer`}>{footer}</div>}
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/selector-pro/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
max-height: 520px;
background: @palette-white;
border-radius: 4px;
box-shadow: 0 6px 14px rgba(223, 226, 237, 0.8);
box-shadow: 0 8px 24px rgba(36, 46, 89, 0.1);
}
.@{selector-prefix-cls-legacy}-overlay-dropdown {
.@{old-dropdown-prefix-cls-legacy}-inner {
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/selector/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: fit-content;
background: @palette-white;
border-radius: 4px;
box-shadow: 0 6px 14px rgba(223, 226, 237, 0.8);
box-shadow: 0 8px 24px rgba(36, 46, 89, 0.1);
.@{dropdown-inner-prefix-cls-legacy}-inner {
overflow: visible;
}
Expand Down

1 comment on commit ac2938f

@vercel
Copy link

@vercel vercel bot commented on ac2938f Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.