Applied hound linter suggestions

This commit is contained in:
Ivan Kljun 2023-07-31 15:45:39 +02:00
parent a7aad50607
commit 9a37b75001
4 changed files with 8 additions and 7 deletions

View file

@ -82,7 +82,6 @@ hr {
.print-checklist-item {
display: flex;
gap: .7em;
margin-bottom: 1em;
span {
@ -90,6 +89,8 @@ hr {
}
div {
margin-bottom: .7em;
margin-left: .7em;
white-space: pre-line;
}
}

View file

@ -536,11 +536,11 @@ label {
}
.report-checklist-item {
display: -webkit-box; /* for wkhtmltopdf compatibility */
display: -webkit-box; // for wkhtmltopdf compatibility
display: flex;
justify-content: start;
margin-top: .5em;
-webkit-box-pack: start; /* for wkhtmltopdf compatibility */
-webkit-box-pack: start; // for wkhtmltopdf compatibility
div:nth-child(2) {
margin-top: .2em;

View file

@ -24,15 +24,15 @@ module Reports::Docx::DrawStepChecklist
items.each do |item|
li do
text_array = SmartAnnotations::TagToText.new(user, team, item.text).text.split("\n")
text_array.each_with_index do |line, index|
# Add the text line
text line
# If this isn't the last line in the array, start a new paragraph for the next line
br if index < text_array.length - 1
end
text " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
end
end

View file

@ -68,7 +68,7 @@
<% else %>
<span class="checklist-checkbox not-checked"></span>
<% end %>
</span>#
</span>
<div><%= smart_annotation_parser(checklist_item.text, current_team).html_safe %></div> <%# Should stay in one line %>
</div>
<% end %>