Skip to content

Commit

Permalink
Problems: fix multiline description at List view, closes #704
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Apr 22, 2019
1 parent 30ce9d8 commit f76cff2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panel-triggers/components/AlertList/AlertCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export default class AlertCard extends PureComponent<AlertCardProps, AlertCardSt
</div>

{panelOptions.descriptionField && panelOptions.descriptionAtNewLine && (
<div className="alert-rule-item__text" >
<div className="alert-rule-item__text zbx-description--newline" >
<span
className="alert-rule-item__info zbx-description zbx-description--newline"
className="alert-rule-item__info zbx-description"
dangerouslySetInnerHTML={{ __html: problem.comments }}
/>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/sass/_panel-triggers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

&.zbx-description--newline {
max-height: unset;

.zbx-description {
margin-left: 0px;
}
}

.zbx-description {
Expand Down

0 comments on commit f76cff2

Please sign in to comment.