Skip to content

Commit

Permalink
Fix unit overlapping with additional icons (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski authored Sep 21, 2022
1 parent 341f853 commit 3d481fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bika/lims/browser/analyses/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,11 @@ def folderitems(self):

return items

def render_unit(self, unit, css_class="unit small text-secondary"):
def render_unit(self, unit, css_class=None):
"""Render HTML element for unit
"""
if css_class is None:
css_class = "unit d-inline-block py-2 small text-secondary"
return "<span class='{css_class}'>{unit}</span>".format(
unit=unit, css_class=css_class)

Expand Down

0 comments on commit 3d481fe

Please sign in to comment.