Skip to content

Commit

Permalink
fix: Picker margin-bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 committed Dec 31, 2019
1 parent 0903e39 commit e766380
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/date-picker/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
line-height: @picker-text-height - 2 * @border-width-base - @padding-xs / 2;
text-align: left;
list-style: none;
margin-bottom: 0;

> li {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion components/style/themes/dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
@input-bg: transparent;
@input-placeholder-color: fade(@white, 30%);
@input-number-handler-bg: transparent;
@input-number-handler-active-bg: @popover-background;
@input-number-handler-active-bg: @item-hover-bg;
@input-icon-hover-color: fade(@white, 85%);

// Select
Expand Down
6 changes: 6 additions & 0 deletions components/tag/demo/colorful.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ ReactDOM.render(
margin-bottom: 8px;
}
```

<style>
.code-box-demo .ant-tag {
margin-bottom: 8px;
}
<style>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.10.0",
"antd-pro-merge-less": "^2.0.26",
"antd-pro-merge-less": "^2.0.28",
"antd-theme-generator": "^1.1.6",
"babel-eslint": "^10.0.1",
"babel-plugin-add-react-displayname": "^0.0.5",
Expand Down
5 changes: 5 additions & 0 deletions site/theme/static/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ a {
bottom: 102px;
z-index: 2147483640;
cursor: pointer;
&-tooltip {
.ant-tooltip-inner {
min-width: 100px;
}
}
& > div {
display: block;
}
Expand Down
6 changes: 5 additions & 1 deletion site/theme/template/Content/MainContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ class MainContent extends Component {
</section>
{componentPage && (
<div className="fixed-widgets">
<Tooltip title={formatMessage({ id: `app.theme.switch.${theme}` })}>
<Tooltip
getPopupContainer={node => node.parentNode}
title={formatMessage({ id: `app.theme.switch.${theme}` })}
overlayClassName="fixed-widgets-tooltip"
>
<Avatar
className={classNames('fixed-widgets-avatar', `fixed-widgets-avatar-${theme}`)}
size={44}
Expand Down

0 comments on commit e766380

Please sign in to comment.