Skip to content

Commit

Permalink
fix: consider reset css in BackgroundJobsPanel (SHRUI-213) (#1087)
Browse files Browse the repository at this point in the history
* fix: adjust job row styles

* fix: fix size of Icon
  • Loading branch information
wmoai committed Oct 21, 2020
1 parent eeb9bda commit 9bbc279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/BackgroundJobsPanel/BackgroundJobsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,17 @@ const Job = styled.li<{ themes: Theme }>(({ themes }) => {
const { pxToRem, space } = themes.size
return css`
display: flex;
align-items: flex-start;
align-items: center;
flex-wrap: nowrap;
line-height: 1rem;
line-height: normal;
:not(:first-child) {
margin-top: ${pxToRem(space.XS)};
}
`
})
const JobIconWrapper = styled.div`
flex-shrink: 0;
line-height: 0;
`
const JobName = styled(OmittableJobText)<{ themes: Theme }>(({ themes }) => {
const { font, pxToRem, space } = themes.size
Expand Down
2 changes: 1 addition & 1 deletion src/components/BackgroundJobsPanel/JobIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const JobIcon: FC<Props> = ({ status }) => {
const name = getIconName(status)
const color = useIconColor(status)

return <Icon name={name} color={color} />
return <Icon name={name} color={color} size={16} />
}

function getIconName(status: Status): ComponentProps<typeof Icon>['name'] {
Expand Down
1 change: 1 addition & 0 deletions src/components/BackgroundJobsPanel/OmittableJobText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Wrapper = styled.div`
overflow: hidden;
`
const Tooltip = styled(LightTooltip)`
display: block;
text-overflow: ellipsis;
overflow: hidden;
`

0 comments on commit 9bbc279

Please sign in to comment.