From 703a279ffa8aab58a747d9272591740e16512a20 Mon Sep 17 00:00:00 2001 From: ming Date: Thu, 8 May 2025 13:37:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=EC=BC=80=EC=A4=84=EB=9F=AC=20select?= =?UTF-8?q?=20height=20=EC=98=A4=EB=A5=98=20=EB=B3=B4=EC=A0=95=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stylesheets/application.tailwind.css | 2 +- app/views/schedules/schedule_edit.html.erb | 4 ++-- modbus.rb | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 2bec063..4960433 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -89,7 +89,7 @@ } .select-style { - @apply block w-full px-2 py-1.5 border border-default-slate/50 rounded-xs text-base-background + @apply block w-full px-2 py-1.5 border border-default-slate/50 rounded-xs text-base-background appearance-none } .select-style option { diff --git a/app/views/schedules/schedule_edit.html.erb b/app/views/schedules/schedule_edit.html.erb index 1c1bd62..3b1afac 100644 --- a/app/views/schedules/schedule_edit.html.erb +++ b/app/views/schedules/schedule_edit.html.erb @@ -18,11 +18,11 @@
<%= select_tag "schedule[#{s.id}][hour]", options_for_select((0..23).map { |h| [h.to_s.rjust(2, '0'), h] }, s.hour), - class: "select-style text-white min-w-[60px] h-full" %> + class: "select-style text-white min-w-[60px]" %>
:
<%= number_field_tag "schedule[#{s.id}][minute]", s.minute, min: 0, max: 59, step: 1, inputmode: "decimal", - class: "input-style min-w-[60px] h-full" %> + class: "input-style min-w-[60px]" %>
diff --git a/modbus.rb b/modbus.rb index 0ef6e52..77c989b 100644 --- a/modbus.rb +++ b/modbus.rb @@ -22,13 +22,13 @@ begin end end rescue - # error_message = "[#{Time.now}] #{mode} 실행 실패 (station_id: #{controller_id}, value: #{value})" - # res = Sms.send_one( - # { - # to: '01062619801', - # from: '01062619801', - # text: error_message - # } - # ) - # puts res + error_message = "[#{Time.now}] #{mode} 실행 실패 (station_id: #{controller_id}, value: #{value})" + res = Sms.send_one( + { + to: '01062619801', + from: '01062619801', + text: error_message + } + ) + puts res end