Development
This commit is contained in:
parent
2e4921ab73
commit
49dd4a2cf8
3 changed files with 5 additions and 4 deletions
|
|
@ -1003,10 +1003,11 @@ def build_table_cell(value, render_fn, col_class='', field='', row_idx=None,
|
|||
mini = s[0] if s else ''
|
||||
if not s:
|
||||
return ''
|
||||
tip_attr = f' data-tooltip="{e(tooltip)}"' if tooltip else ''
|
||||
if prefer_short:
|
||||
return f'<span class="tag" data-tooltip="{e(tooltip)}">{e(short)}</span>'
|
||||
return f'<span class="tag"{tip_attr}>{e(short)}</span>'
|
||||
return (
|
||||
f'<span class="tag" data-tooltip="{e(tooltip)}">'
|
||||
f'<span class="tag"{tip_attr}>'
|
||||
f'<span class="tl-full">{e(s)}</span>'
|
||||
f'<span class="tl-short">{e(short)}</span>'
|
||||
f'<span class="tl-min">{e(mini)}</span>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue