Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
added max width because mobile
Line 47: Line 47:
-- Row data is a child navbox
-- Row data is a child navbox
row = row
row = row
.. '<th style="width:10em; text-align:right; background-color:#eaecf0; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<th style="width:10em; width-max:8%; text-align:right; background-color:#eaecf0; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<td style="padding:0em">' .. row_data .. '</td>\n'
.. '<td style="padding:0em">' .. row_data .. '</td>\n'
else
else
-- Row data is normal data
-- Row data is normal data
row = row
row = row
.. '<th style="width:10em; text-align:right; background-color:#eaecf0; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<th style="width:10em; width-max:8%; text-align:right; background-color:#eaecf0; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<td style="text-alight:right; padding:0.25em 0.5em">\n' .. row_data .. '</td>\n'
.. '<td style="text-alight:right; padding:0.25em 0.5em">\n' .. row_data .. '</td>\n'
end
end