diff --git a/application/controllers/Bandmap.php b/application/controllers/Bandmap.php index 101e79a62..d50bf1c66 100644 --- a/application/controllers/Bandmap.php +++ b/application/controllers/Bandmap.php @@ -46,6 +46,7 @@ class Bandmap extends CI_Controller { 'assets/js/leaflet/leaflet.geodesic.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/leaflet.geodesic.js")), 'assets/js/leaflet.polylineDecorator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet.polylineDecorator.js")), 'assets/js/leaflet/L.Terminator.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/leaflet/L.Terminator.js")), + 'assets/js/sections/callstats.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/callstats.js")), 'assets/js/sections/bandmap_list.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/bandmap_list.js")), ]; diff --git a/assets/css/bandmap_list.css b/assets/css/bandmap_list.css index 2b34b8b79..5ee5a46c5 100644 --- a/assets/css/bandmap_list.css +++ b/assets/css/bandmap_list.css @@ -152,11 +152,6 @@ tbody a { cursor: pointer !important; } -.spottable tbody tr td:nth-child(6) a { - text-decoration: underline !important; - cursor: pointer !important; -} - .spottable tbody tr td:nth-child(8) i:hover { opacity: 0.7; transform: scale(1.1); @@ -322,7 +317,8 @@ table tbody tr.cat-nearest-above td { .spottable { width: 100%; table-layout: fixed; - font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace; + font-family: 'Consolas', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace; + font-variant-numeric: slashed-zero; font-size: calc(1rem - 2px); } @@ -381,6 +377,12 @@ table tbody tr.cat-nearest-above td { font-size: calc(1rem - 4px); } +/* Callsign columns (DX and Spotter) - larger font */ +.spottable td:nth-child(6), .spottable td:nth-child(12) { + font-size: calc(1rem - 2px); +} + +/* Continent columns (emoji font) */ .spottable td:nth-child(7), .spottable td:nth-child(13) { font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', Arial, sans-serif; overflow: hidden; diff --git a/assets/js/sections/bandmap_list.js b/assets/js/sections/bandmap_list.js index 4e7f10df2..cf0854d1e 100644 --- a/assets/js/sections/bandmap_list.js +++ b/assets/js/sections/bandmap_list.js @@ -508,27 +508,11 @@ $(function() { // to prevent recursion issues with table redraws } }); $('.spottable tbody').off('click', 'tr').on('click', 'tr', function(e) { - // Don't trigger row click if clicking on a link (LoTW, POTA, SOTA, WWFF, QRZ, etc.) - if ($(e.target).is('a') || $(e.target).closest('a').length) { + // Don't trigger row click if clicking on a link or image (LoTW, POTA, SOTA, WWFF, callstats, QRZ icon, etc.) + if ($(e.target).is('a') || $(e.target).is('img') || $(e.target).closest('a').length) { return; } - let cellIndex = $(e.target).closest('td').index(); - // If clicking callsign column (column 5, 0-indexed = 4), open QRZ link directly - if (cellIndex === 4) { - let rowData = table.row(this).data(); - if (!rowData) return; - - let callsignHtml = rowData[4]; - let tempDiv = $('