Skip to content

Commit

Permalink
fix: Fix pod schedule page styles error
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Dec 24, 2019
1 parent 1f8ffdc commit 73932a1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/components/Base/Text/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import styles from './index.scss'

export default class Text extends React.PureComponent {
render() {
const { icon, title, description, className } = this.props
const { icon, title, description, className, extra } = this.props

return (
<div className={classNames(styles.wrapper, className)}>
Expand All @@ -34,6 +34,7 @@ export default class Text extends React.PureComponent {
<div>{isUndefined(title) || title === '' ? '-' : title}</div>
<p>{description}</p>
</div>
{extra}
</div>
)
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Cards/Volumes/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const Card = ({ volume, prefix }) => {
<List.Item
icon={icon}
title={volume.name}
titleClass={styles.title}
description={description}
extras={mount}
details={details}
Expand Down
12 changes: 7 additions & 5 deletions src/components/Cards/Volumes/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,24 @@
border-radius: 4px;

& > div {
display: flex;
color: $text-color;
font-weight: $font-bold;
min-width: 200px;

& > span {
display: inline-block;
vertical-align: middle;
}
word-break: break-all;
}

& + li {
margin-top: 8px;
}

:global .icon {
flex: none;
margin-right: 8px;
}
}
}

.title {
width: 30%;
}
17 changes: 9 additions & 8 deletions src/pages/projects/containers/Pods/Detail/ScheduleInfo/index.jsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73932a1

Please sign in to comment.