Fixed small design issues and installed tailwind sorter headwind to vscode

This commit is contained in:
2024-08-14 13:21:01 +02:00
parent 17b5666710
commit 08babbcea3
2 changed files with 75 additions and 75 deletions

View File

@@ -4,7 +4,7 @@
<%= job.id %>
</span>
</td>
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap w-6">
<td class="w-6 p-3 text-sm text-hsrm-gray whitespace-nowrap">
<% if job.pdf.attached? %>
<%= link_to_if job.printing?, image_tag(url_for(job.pdf.preview(resize_to_limit: [100, 100]))), job.pdf, target: "_blank", class: "shadow-lg" %>
<!--<iframe src=<%= url_for(job.pdf) %> width="500" height="700" style="border: none;"></iframe>-->
@@ -27,7 +27,7 @@
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
<% if job.printing? %>
<div class="flex flex-col items-center">
<span class="p-1 bg-gray-300 bg-opacity-50 font-medium rounded-lg inline-block">
<span class="inline-block p-1 font-medium bg-gray-300 bg-opacity-50 rounded-lg">
<%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
</span>
<% end %>
@@ -35,7 +35,7 @@
<%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %>
</span>
<% if job.printing? %>
<span class="p-1 bg-gray-300 bg-opacity-50 font-medium rounded-lg inline-block">
<span class="inline-block p-1 font-medium bg-gray-300 bg-opacity-50 rounded-lg">
<%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
</span>
</div>
@@ -77,7 +77,7 @@
<% end %>
<% if job.pickup? || job.printing? %>
<% job.printing? && turbo_confirm = 'Sind die Pläne gedruckt und die Seitenanzahl und QM korrekt?' %>
<%= button_to icon("banknotes", class: "text-status-paid size-6 inline drop-shadow hover:text-opacity-75", title: "Bezahlt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %>
<%= button_to icon("banknotes", class: "text-hsrm-gray size-6 inline drop-shadow hover:text-opacity-75", title: "Bezahlt"), operator_job_path(job), method: :patch, params: {:job => {status: :paid}}, form: {data: {turbo_confirm: turbo_confirm}}, form_class: "inline" %>
<% else %>
<%= icon("banknotes", class: "text-hsrm-gray text-opacity-25 size-6 inline drop-shadow ", title: "") %>
<% end %>