Changes

Try to break name cell between names, Small notes
Line 30: Line 30:  
_column_cell_templates = {
 
_column_cell_templates = {
 
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
 
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]]
+
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]],
 +
notes = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<small>${values.value}</small>]],
 
},
 
},
 
_columns = {
 
_columns = {
Line 59: Line 60:  
function EliteShipsKai:name(ship)
 
function EliteShipsKai:name(ship)
 
local link, text, section = ship:link()
 
local link, text, section = ship:link()
local value = {Formatting:format_link(link, text, section)}
+
local value = {Formatting:inline_block(Formatting:format_link(link, text, section))}
 
local japanese_name = ship:japanese_name()
 
local japanese_name = ship:japanese_name()
 
if japanese_name and (text or link) ~= japanese_name then
 
if japanese_name and (text or link) ~= japanese_name then
table.insert(value, Formatting:format_stat(japanese_name))
+
table.insert(value, Formatting:inline_block(Formatting:format_stat(japanese_name)))
 
end
 
end
 
--local nickname = ship:nick()
 
--local nickname = ship:nick()
 
--if nickname then
 
--if nickname then
-- table.insert(value, format{self._nickname_template, nickname = Formatting:format_stat(nickname)})
+
-- table.insert(value, format{self._nickname_template, nickname = Formatting:inline_block(Formatting:format_stat(nickname))})
 
--end
 
--end
 
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._center_align}
 
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._center_align}
Anonymous user