Tweak styles for cell inline textarea elements

This commit is contained in:
Dan Sosedoff 2014-11-03 20:18:09 -06:00
parent bfd4335e61
commit 164681dcdd
2 changed files with 7 additions and 5 deletions

View File

@ -105,6 +105,7 @@
#sidebar div.tables-list #tables { #sidebar div.tables-list #tables {
padding: 33px 0 0; padding: 33px 0 0;
font-size: 13px;
} }
#sidebar div.table-information { #sidebar div.table-information {
@ -327,6 +328,7 @@
#results td textarea { #results td textarea {
color: #000 !important; color: #000 !important;
font-size: 12px;
} }
#results th:first-child, #results th:first-child,

View File

@ -350,12 +350,12 @@ $(document).ready(function() {
} }
var value = unescapeHtml($(this).html()); var value = unescapeHtml($(this).html());
if (!value) { return; }
if (!value) { var textarea = $("<textarea />").
return; text(value).
} addClass("form-control").
css("width", $(this).css("width"));
var textarea = $("<textarea />").text(value).css("width", $(this).css("width"));
if (value.split("\n").length >= 3) { if (value.split("\n").length >= 3) {
textarea.css("height", "200px"); textarea.css("height", "200px");