Skip to content

Commit

Permalink
fix: adjust categoricals layout
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarros authored and aquemy committed Dec 21, 2022
1 parent e2593f5 commit f0bb45a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<div class="col-sm-{{ nb_col }} collapse in" id="minifreqtable{{ varid }}">
<div class="row" id="minifreqtable{{ varid }}">
<table class="mini freq{% if idx is defined %} table-{{ idx }}{% endif %}">
{% if rows | length > 0 %}
{% for row in rows %}
<tr class="{{ row['extra_class'] }}">
<th width="50%">
<th width="10%">
{% if not redact %}
{{ row['label'] | fmt }}
{% endif %}
</th>
<td width="50%">
<td width="10%">
<div class="bar"
style="width:{{ row['width'] | fmt_percent(edge_cases=False) }}"
data-toggle="tooltip"
data-placement="right"
data-placement="center"
data-html="true"
data-delay="500">
{% if row['width'] > 0.10 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ items[0].render() }}
</div>
{% for item in items[1:] %}
<div class="col-sm-4">
<div class="col-sm-{% if loop.length == 3 %}4{% else %}6{% endif %}{% if item.content['classes'] %} {{ item.content['classes'] }}{% endif %}">
{{ item.render() }}
</div>
{% endfor %}
Expand Down

0 comments on commit f0bb45a

Please sign in to comment.