diff --git a/frontend/main.js b/frontend/main.js index 7b80010..cf8b08c 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -712,19 +712,20 @@ function processUpdate(data, init) { '

' + '' + '' + - '0.0 ' + - VELOCITY_UNIT.unit + - ' | ' + - '' + - '0.0 ' + - ALTITUDE_UNIT.unit + + 'vel:' + + '0.0 ' + + VELOCITY_UNIT.unit + '' + + '
' + + 'alt:' + + '0.0 ' + + ALTITUDE_UNIT.unit + '' + '
' + '' + '' + '

' + '', // FIXME: hard-coded and dependend on style.css .marker - iconAnchor: [60, 18] + iconAnchor: [48, 18] }); shares[user].marker = L.marker([lat, lon], {icon: shares[user].icon}).on("click", function() { follow(this.haukUser); diff --git a/frontend/style.css b/frontend/style.css index b799543..d7521b9 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -254,7 +254,7 @@ a:last-child > .store-icon { /* The outer marker div. */ .marker { - width: 120px; + width: 96px; height: 62px; } @@ -302,8 +302,8 @@ a:last-child > .store-icon { width: 100%; border-radius: 15px; text-align: center; - padding: 2px 0; - line-height: 100%; + padding: 5px 0 5px; + line-height: 125%; font-family: sans-serif; overflow: hidden; white-space: nowrap; @@ -333,3 +333,20 @@ a:last-child > .store-icon { background: none; border: none; } + +.metric-label { + display:inline-block; + width: 30%; + text-align:right; + vertical-align: bottom; + padding-right: 0.5em; +} + +.metric-value { + display:inline-block; + width: 70%; + text-align: left; + overflow: hidden; + text-overflow: ellipsis; + vertical-align: bottom; +}