Jump to content

Module:Inventory slot: Difference between revisions

m
Fixed number being at the wrong position.
imported>Ttv pedro270707
mNo edit summary
imported>Ttv pedro270707
m (Fixed number being at the wrong position.)
Line 104: Line 104:
if count then
if count then
local itemCount = mw.html.create( "span" )
local itemCount = mw.html.create( "span" )
itemCount:cssText( "position: absolute; right: -2px; bottom: -5px; pointer-events: none;" )
itemCount:cssText( "position: absolute; right: 0; bottom: -2px; pointer-events: none;" )
:addClass( "c-0" )
:addClass( "c-0" )
:addClass( "shadow" )
:addClass( "shadow" )
Line 151: Line 151:
if count then
if count then
local itemCount = mw.html.create( "span" )
local itemCount = mw.html.create( "span" )
itemCount:cssText( "position: absolute; right: -2px; bottom: -5px; pointer-events: none;" )
itemCount:cssText( "position: absolute; right: 0; bottom: -2px; pointer-events: none;" )
:addClass( "c-0" )
:addClass( "c-0" )
:addClass( "shadow" )
:addClass( "shadow" )