Просмотр исходного кода

Quick fix for launch icon text overflow on Edge and Chrome

Toby Chui 3 лет назад
Родитель
Сommit
cbb46f659f
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      web/desktop.system

+ 5 - 1
web/desktop.system

@@ -3522,6 +3522,10 @@
                 }
             }
             
+            var iconTextReadjustment = "";
+            if (isChrome){
+                iconTextReadjustment = "font-size: 96s%;"
+            }
            
             var thisIcon = $(`<${htmlType} href="javascript:void(0);" class="launchIcon" 
                     type="${properties.type}" 
@@ -3538,7 +3542,7 @@
                     style="width:${properties.iwidth}px; height:${properties.iheight}px;left:${properties.screenX}px; top:${properties.screenY}px;">
                     <span class="launchIconWrapper">
                         <img class="launchIconImage ${properties.size}" src="${properties.imagePath}" style="${imageStyleOverride}" draggable="false"></img>
-                        <p class="launchIconText ${properties.size}">${properties.shortenedName}</p>
+                        <p class="launchIconText ${properties.size}" style="${iconTextReadjustment}">${properties.shortenedName}</p>
                     </span>
                     </${htmlType}>`);