fix marker showing differint in firefox and chrome

This commit is contained in:
koksnuss 2020-05-31 23:02:31 +02:00
parent f94cd362e1
commit 570d63456f
3 changed files with 16 additions and 8 deletions

View File

@ -149,7 +149,7 @@ function render_response(data, td, set) {
/* add or update marker (and name) if found */ /* add or update marker (and name) if found */
if (set['found'] && set['found_by'] && set['exists']) { if (set['found'] && set['found_by'] && set['exists']) {
div_class = set['found_by']; div_class = set['found_by'];
$(td).find('div.coin span').html('').html(''); } $(td).find('div.coin span').html('').html(''); }
/* add/update name */ /* add/update name */
if ([201, 202, 203].includes(data['value'])) { if ([201, 202, 203].includes(data['value'])) {

View File

@ -257,10 +257,13 @@ td > * {
td.coin { td.coin {
background-color: #cec6ca; background-color: #cec6ca;
font-size: 1.1rem;
border: 2px solid white; border: 2px solid white;
font-size: 1.3rem;
font-family: sans-serif;
} }
.brass { .brass {
background-color: #dec1a8 !important; background-color: #dec1a8 !important;
} }
@ -293,13 +296,18 @@ td.coin {
/* coin div text style */ /* coin div text style */
.ec { .ec {
color: #dc3545; color: #dc3545 !important;
font-weight: bold; font-weight: bold !important;
}
@-moz-document url-prefix() {
.ec, .checked {
font-size: 1.7rem !important;
}
} }
.checked { .checked {
color: #28a745; color: #28a745 !important;
font-weight: bold; font-weight: bold !important;
} }
@ -315,7 +323,7 @@ div.coin {
z-index: 1000; z-index: 1000;
height: 40px; height: 40px;
width: 40px; width: 40px;
text-align: inherit; text-align: center;
line-height: 40px; line-height: 40px;
float: left; float: left;
} }

View File

@ -193,7 +193,7 @@ def show_coin(country, year, stamp, value):
marker = '' marker = ''
if coin.found_by: if coin.found_by:
div_class = f"found {coin.found_by}" div_class = f"found {coin.found_by}"
marker = '' marker = ''
name = coin.name if coin.name else '' name = coin.name if coin.name else ''
special_class = '' special_class = ''