Skip to content

Commit

Permalink
fix(panel): keep dict height unchanged when there is nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 12, 2018
1 parent d2bd4d4 commit 47ef11b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/components/DictItem/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
}

.panel-DictItem_BodyMesure {
padding: 10px 0;

// clear margin collapsing which seems to causing flickering
// when changing the parent height
overflow: hidden;

> *:first-child {
margin-top: 0 !important;
margin-top: 10px !important;
}

> *:last-child {
margin-bottom: 0 !important;
margin-bottom: 10px !important;
}
}

Expand Down

0 comments on commit 47ef11b

Please sign in to comment.