Skip to content

Commit 2293c2a

Browse files
committed
revert some unintended CSS changes
1 parent e6a2914 commit 2293c2a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

vis/js/templates/Paper.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,13 @@ const getEnlargeFactor = (offsetWidth, scrollHeight) => {
550550
};
551551

552552
const getMetadataHeight = (realHeight, numOfLabels, isZoomed) => {
553-
let readersHeight = 12;
553+
let readersHeight = 0;
554554

555555
if (numOfLabels && isZoomed) {
556-
readersHeight += numOfLabels * 12;
556+
readersHeight += numOfLabels * 12 + 12;
557+
}
558+
if (numOfLabels && !isZoomed) {
559+
readersHeight += 12;
557560
}
558561

559562
const height = realHeight - readersHeight;

vis/stylesheets/modules/map/_papers.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
.stat {
122122
font-size: 9px;
123-
// line-height: 100%;
123+
line-height: 100%;
124124
// margin-bottom: 2px;
125125
// padding-left: 2px;
126126
// padding-right: 2px;

0 commit comments

Comments
 (0)