]> cat aescling's git repositories - mastodon.git/commitdiff
Improve style for form in site settings (#2796)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Thu, 4 May 2017 18:37:57 +0000 (03:37 +0900)
committerMatt Jankowski <mjankowski@thoughtbot.com>
Thu, 4 May 2017 18:37:57 +0000 (14:37 -0400)
app/javascript/styles/forms.scss
app/views/admin/settings/edit.html.haml

index 18e8657cdb16c895ec80d85f066d89a821144e56..18258099b8f700cf5f72ae2d52ee30f612888712 100644 (file)
@@ -9,12 +9,6 @@ code {
   margin: 0 auto;
 }
 
-.admin {
-  input, textarea {
-    width: 100%;
-  }
-}
-
 .simple_form {
   .input {
     margin-bottom: 15px;
index 0808f467cdb3f4f2b87c37257d71cd647096a703..59a8f53ed1842b06f607f1f7f41c46dded3094e3 100644 (file)
@@ -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