From cae724775066b3099e43476258b4927e51172388 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 8 Sep 2021 11:03:27 +0800 Subject: [PATCH] Fix layout. --- app/views/admin/property_hires/edit_hire.html.erb | 5 +++-- app/views/property_hires/hire.html.erb | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/admin/property_hires/edit_hire.html.erb b/app/views/admin/property_hires/edit_hire.html.erb index a618784..fad2936 100644 --- a/app/views/admin/property_hires/edit_hire.html.erb +++ b/app/views/admin/property_hires/edit_hire.html.erb @@ -290,11 +290,12 @@ ul.list-unstyled li { } } form#new_p_hire .form-group input,form#new_p_hire .form-group select, form#new_p_hire .form-group textarea{ - width: 100%; + min-width: 100%; max-width: 300px; } - form#new_p_hire .form-group input[name="_rucaptcha"]{ + form#new_p_hire .form-group input[name="_rucaptcha"], form#new_p_hire .form-group input[type="submit"]{ width: auto; + min-width: auto; } <% if !property.can_be_hired %> diff --git a/app/views/property_hires/hire.html.erb b/app/views/property_hires/hire.html.erb index 2ae67a2..f6079f3 100644 --- a/app/views/property_hires/hire.html.erb +++ b/app/views/property_hires/hire.html.erb @@ -160,11 +160,12 @@ } } form#new_p_hire .form-group input,form#new_p_hire .form-group select, form#new_p_hire .form-group textarea{ - width: 100%; + min-width: 100%; max-width: 300px; } - form#new_p_hire .form-group input[name="_rucaptcha"]{ + form#new_p_hire .form-group input[name="_rucaptcha"], form#new_p_hire .form-group input[type="submit"]{ width: auto; + min-width: auto; } <% if !property.can_be_hired %>