commit: 566e0a772d12b698d8a0ea08265179a68a477d43
parent: 11077af52f69c683e3861c8f269bb3311b5cbf4a
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Fri, 5 May 2017 03:37:57 +0900
Improve style for form in site settings (#2796)
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git 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
@@ -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