about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-05 03:37:57 +0900
committerMatt Jankowski <mjankowski@thoughtbot.com>2017-05-04 14:37:57 -0400
commit566e0a772d12b698d8a0ea08265179a68a477d43 (patch)
tree5fbd2cb1301a6f51e7b307cb8e103a73bf3992a7
parent11077af52f69c683e3861c8f269bb3311b5cbf4a (diff)
Improve style for form in site settings (#2796)
-rw-r--r--app/javascript/styles/forms.scss6
-rw-r--r--app/views/admin/settings/edit.html.haml2
2 files changed, 1 insertions, 7 deletions
diff --git a/app/javascript/styles/forms.scss b/app/javascript/styles/forms.scss
index 18e8657cd..18258099b 100644
--- a/app/javascript/styles/forms.scss
+++ b/app/javascript/styles/forms.scss
@@ -9,12 +9,6 @@ code {
   margin: 0 auto;
 }
 
-.admin {
-  input, textarea {
-    width: 100%;
-  }
-}
-
 .simple_form {
   .input {
     margin-bottom: 15px;
diff --git a/app/views/admin/settings/edit.html.haml b/app/views/admin/settings/edit.html.haml
index 0808f467c..59a8f53ed 100644
--- a/app/views/admin/settings/edit.html.haml
+++ b/app/views/admin/settings/edit.html.haml
@@ -1,7 +1,7 @@
 - content_for :page_title do
   = t('admin.settings.title')
 
-= form_tag(admin_settings_path, method: :put) do
+= form_tag(admin_settings_path, method: :put, class: 'simple_form', style: 'max-width: 100%') do
   %table.table
     %thead
       %tr