Skip to content

Commit

Permalink
fix: line height of a single line sometimes being larger than 18px du…
Browse files Browse the repository at this point in the history
…e to icons and tooltip styling
  • Loading branch information
josdejong committed Jul 21, 2021
1 parent e45e28b commit 1431160
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/components/modes/treemode/JSONNode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,10 @@

.header,
.contents {
display: table;
display: flex;
flex-direction: row;

line-height: $line-height;

> :global(*) {
display: table-cell;
}
}

.contents {
Expand Down Expand Up @@ -146,7 +142,6 @@
}

.expand {
display: table-cell;
position: relative;
top: 2px;
width: $line-height;
Expand Down Expand Up @@ -196,9 +191,13 @@
}

.tag {
vertical-align: top;
padding: 0 4px 1px;
margin: 2px;
margin: 0 2px;
position: relative;
top: 1px;

height: $line-height - 2px;
line-height: $line-height - 4px;

background: $light-gray-transparent;

Expand Down
4 changes: 4 additions & 0 deletions src/components/modes/treemode/ValidationError.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ button.validation-error {
position: relative;
top: 2px;
}

:global(.container) {
height: $line-height;
}

0 comments on commit 1431160

Please sign in to comment.