Skip to content

Commit d72e36e

Browse files
committed
Separate display of raw value from percentag
1 parent edfc0ce commit d72e36e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/fun_with_flags/ui/templates/rows/_percentage.html.eex

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
%>
88
<div id="percentage_gate" class="container fwf-I-hate-grids">
99
<div class="row no-gutters d-flex flex-nowrap" style="gap: 8px;">
10-
<div class="flex-grow-1 w-100">
11-
<span class="badge badge-default">% of <%= gate_type %></span>
12-
-
13-
<%= html_status_for @gate.enabled %> for <%= Utils.as_percentage(@gate.for) %>% of the <%= gate_type %>
10+
<div class="d-flex flex-grow-1 w-100 justify-content-between">
11+
<div>
12+
<span class="badge badge-default">% of <%= gate_type %></span>
13+
-
14+
<%= html_status_for @gate.enabled %> for <%= Utils.as_percentage(@gate.for) %>% of the <%= gate_type %>
15+
</div>
1416

15-
raw value: <code><%= html_escape(@gate.for) %></code>
17+
<div class="text-left">
18+
raw value: <code><%= html_escape(@gate.for) %></code>
19+
</div>
1620
</div>
1721

1822
<div class="flex-shrink-0 text-right">

0 commit comments

Comments
 (0)