Selaa lähdekoodia

[ui cleanup] [minor]

version-14
Rushabh Mehta 11 vuotta sitten
vanhempi
commit
f18ba49a00
3 muutettua tiedostoa jossa 12 lisäystä ja 10 poistoa
  1. +5
    -5
      public/css/common.css
  2. +1
    -0
      public/js/wn/views/communication.js
  3. +6
    -5
      public/js/wn/views/listview.js

+ 5
- 5
public/css/common.css Näytä tiedosto

@@ -95,7 +95,7 @@ div#freeze {


.form-headline { .form-headline {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 130%;
font-size: 120%;
} }


.form-dashboard { .form-dashboard {
@@ -134,7 +134,7 @@ div#freeze {
.list-timestamp { .list-timestamp {
position: absolute; position: absolute;
right: 5px; right: 5px;
bottom: -2px;
bottom: 2px;
font-size: 70%; font-size: 70%;
color: #888; color: #888;
} }
@@ -264,7 +264,7 @@ div#freeze {
margin-top: -15px; margin-top: -15px;
font-size: 24px; font-size: 24px;
text-align: center; text-align: center;
width: 40px;
width: 27px;
} }


.appframe .title-text { .appframe .title-text {
@@ -274,8 +274,8 @@ div#freeze {
} }


.appframe .sub-title-area { .appframe .sub-title-area {
margin-top: -24px;
margin-left: 48px;
margin-top: -20px;
margin-left: 37px;
font-size: 100%; font-size: 100%;
} }




+ 1
- 0
public/js/wn/views/communication.js Näytä tiedosto

@@ -53,6 +53,7 @@ wn.views.CommunicationList = Class.extend({
.appendTo(this.parent); .appendTo(this.parent);
this.body = $('<div class="list-group">') this.body = $('<div class="list-group">')
.css({"border":"1px solid #dddddd", "border-radius":"4px"})
.appendTo(this.wrapper); .appendTo(this.wrapper);
}, },


+ 6
- 5
public/js/wn/views/listview.js Näytä tiedosto

@@ -102,7 +102,7 @@ wn.views.ListView = Class.extend({
} else if(d.fieldtype=="Check") { } else if(d.fieldtype=="Check") {
colspan = "1"; colspan = "1";
} else if(in_list(["name", "subject", "title"], d.fieldname)) { // subjects are longer } else if(in_list(["name", "subject", "title"], d.fieldname)) { // subjects are longer
colspan = "3";
colspan = "4";
} else if(d.fieldtype=="Text Editor" || d.fieldtype=="Text") { } else if(d.fieldtype=="Text Editor" || d.fieldtype=="Text") {
colspan = "4"; colspan = "4";
} }
@@ -138,10 +138,11 @@ wn.views.ListView = Class.extend({
this.id_list.push(data.name); this.id_list.push(data.name);
var body = $('<div class="doclist-row" style="display: table; width: 100%;">\
<div class="list-row-id-area" style="width: 200px; display: table-cell; "></div>\
var body = $('<div class="doclist-row" style="display: table; width: 100%; table-layout: fixed">\
<div class="list-row-id-area" style="width: 200px; display: table-cell; white-space:nowrap;\
text-overflow: ellipsis; max-height: 30px"></div>\
<div class="list-row-content-area row" style="display: table-cell"></div>\ <div class="list-row-content-area row" style="display: table-cell"></div>\
</div>').appendTo(row),
</div>').appendTo($(row).css({"position":"relative"})),
colspans = 0, colspans = 0,
me = this; me = this;
@@ -159,7 +160,7 @@ wn.views.ListView = Class.extend({
}); });
var timestamp = $('<div class="list-timestamp">').appendTo(body).html(comment_when(data.modified));
var timestamp = $('<div class="list-timestamp">').appendTo(row).html(comment_when(data.modified));
// row #2 // row #2
var row2 = $('<div class="row tag-row">\ var row2 = $('<div class="row tag-row">\


Ladataan…
Peruuta
Tallenna