Module:Message box: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Taylan (talk) to last revision by Sky
(Hide left/right images on mobile.)
Tag: Reverted
m (Reverted edits by Taylan (talk) to last revision by Sky)
Tag: Rollback
 
Line 537: Line 537:
imageLeftCell = imageLeftCell:tag('div'):css('width', '52px')
imageLeftCell = imageLeftCell:tag('div'):css('width', '52px')
end
end
-- Hide image on mobile as screen may be too narrow.
imageLeftCell:addClass('nomobile')
imageLeftCell:wikitext(self.imageLeft or nil)
imageLeftCell:wikitext(self.imageLeft or nil)
elseif self.imageEmptyCell then
elseif self.imageEmptyCell then
Line 594: Line 592:
imageRightCell = imageRightCell:tag('div'):css('width', '52px')
imageRightCell = imageRightCell:tag('div'):css('width', '52px')
end
end
-- Hide image on mobile as screen may be too narrow.
imageRightCell:addClass('nomobile')
imageRightCell
imageRightCell
:wikitext(self.imageRight or nil)
:wikitext(self.imageRight or nil)

Navigation menu