@@ -1007,7 +1007,7 @@ $(function() {
10071007 lclass = 'lotw_info_yellow' ;
10081008 }
10091009 let lotw_title = lang_bandmap_lotw_last_upload . replace ( '%d' , single . dxcc_spotted . lotw_user ) ;
1010- lotw_badge = '<a href="https://lotw.arrl.org/lotwuser/act?act=' + single . spotted + '" target="_blank" onclick="event.stopPropagation();">' + buildBadge ( 'success ' + lclass , 'fa-upload ', lotw_title ) + '</a>' ;
1010+ lotw_badge = '<a href="https://lotw.arrl.org/lotwuser/act?act=' + single . spotted + '" target="_blank" onclick="event.stopPropagation();">' + buildBadge ( 'success ' + lclass , null , lotw_title , 'L ', false , "Helvetica" ) + '</a>' ;
10111011 }
10121012
10131013 // Build activity badges (POTA, SOTA, WWFF, IOTA, Contest, Worked)
@@ -1796,10 +1796,11 @@ $(function() {
17961796 // title: tooltip text
17971797 // text: optional text content instead of icon
17981798 // isLast: if true, uses margin: 0 instead of negative margin
1799- function buildBadge ( type , icon , title , text = null , isLast = false ) {
1799+ function buildBadge ( type , icon , title , text = null , isLast = false , fontFamily = null ) {
18001800 const margin = isLast ? '0' : '0 2px 0 0' ;
18011801 const fontSize = text ? '0.75rem' : '0.7rem' ;
1802- const content = text ? text : '<i class="fas ' + icon + '" style="display: block;"></i>' ;
1802+ const fontFamilyStyle = fontFamily ? 'font-family: ' + fontFamily + ';' : '' ;
1803+ const content = text ? '<span style="display: block; ' + fontFamilyStyle + '">' + text + '</span>' : '<i class="fas ' + icon + '" style="display: block;"></i>' ;
18031804 return '<small class="badge text-bg-' + type + '" style="display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; margin: ' + margin + '; font-size: ' + fontSize + '; line-height: 1;" data-bs-toggle="tooltip" title="' + title + '">' + content + '</small>' ;
18041805 }
18051806
0 commit comments