]> git.openstreetmap.org Git - rails.git/commitdiff
Set width of comment entry area in note popups
authorTom Hughes <tom@compton.nu>
Tue, 15 Jan 2013 21:42:43 +0000 (21:42 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Jan 2013 21:42:43 +0000 (21:42 +0000)
app/assets/javascripts/templates/notes/new.jst.ejs
app/assets/javascripts/templates/notes/show.jst.ejs
app/assets/stylesheets/common.css.scss

index 2c2e77cfe2e9dad41c7aade53961bc13a0fe6246..0b074ec3b8d5870141ecaa75bd29b3310353dfee 100644 (file)
@@ -3,7 +3,7 @@
   <form action="#">
     <input type="hidden" name="lon">
     <input type="hidden" name="lat">
-    <textarea name="text" cols="40" rows="10"></textarea>
+    <textarea class="comment" name="text" cols="40" rows="10"></textarea>
     <br/>
     <div class="buttons">
       <input type="submit" name="add" value="<%- I18n.t('javascripts.notes.new.add') %>" data-url="<%- create_url %>">
index 028f4d084dd5bd5bdc1e164754c82328718fce57..9b9266a05a6694fd25809a619cd8c829c7de263e 100644 (file)
@@ -19,7 +19,7 @@
   <% }) %>
   <% if (note.status == "open") { %>
   <form action="#">
-    <textarea name="text" cols="40" rows="5"></textarea>
+    <textarea class="comment" name="text" cols="40" rows="5"></textarea>
     <br/>
     <div class="buttons">
       <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" data-url="<%- note.close_url %>">
index 062c782a7c13c34328ccc59f10885fe5f03f0b94..fcc580021bc84ee6b9af3c35f04f505b630e5b9e 100644 (file)
@@ -1654,6 +1654,10 @@ a.button.submit {
     }
   }
 
+  .comment {
+    width: 100%;
+  }
+
   .buttons {
     margin-top: 5px;
     text-align: right;