Module:Skills/Artisan: Difference between revisions

Enforce min-width on icon columns to ensure visibility on mobile devices
m (getCookingFireTable: Amend table header)
(Enforce min-width on icon columns to ensure visibility on mobile devices)
Line 23: Line 23:
     local cookedItem = Items.getItemByID(item.cookedItemID)
     local cookedItem = Items.getItemByID(item.cookedItemID)
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|'..Icons.Icon({cookedItem.name, type='item', notext='true', size='50'})..'||[['..cookedItem.name..']]'
     result = result..'\r\n|style="min-width:25px"|'..Icons.Icon({cookedItem.name, type='item', notext='true', size='50'})..'||[['..cookedItem.name..']]'
     result = result..'||style="text-align:right"|'..item.cookingLevel
     result = result..'||style="text-align:right"|'..item.cookingLevel
     result = result..'||style="text-align:right"|'..item.cookingXP
     result = result..'||style="text-align:right"|'..item.cookingXP
Line 119: Line 119:
   for i, tool in Shared.skpairs(toolArray) do
   for i, tool in Shared.skpairs(toolArray) do
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|data-sort-value="'..tool.name..'"|'..Icons.Icon({tool.name, type='upgrade', size='50', notext=true})
     result = result..'\r\n|style="min-width:25px" data-sort-value="'..tool.name..'"|'..Icons.Icon({tool.name, type='upgrade', size='50', notext=true})
     result = result..'||'..tool.name
     result = result..'||'..tool.name
     local level = 1
     local level = 1