Merge pull request #1313 from jackyq2015/master
adjust the width of the table
This commit is contained in:
commit
7aa4cfe6c5
@ -403,7 +403,7 @@ public class FileProjectManager extends ProjectManager {
|
||||
return found;
|
||||
}
|
||||
|
||||
private void mergeEmptyUserMetadata(ProjectMetadata metadata) {
|
||||
public void mergeEmptyUserMetadata(ProjectMetadata metadata) {
|
||||
if (metadata == null)
|
||||
return;
|
||||
|
||||
|
@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
var html = "text/html";
|
||||
var encoding = "UTF-8";
|
||||
var ClientSideResourceManager = Packages.com.google.refine.ClientSideResourceManager;
|
||||
var bundle = true;
|
||||
var bundle = false;
|
||||
|
||||
var templatedFiles = {
|
||||
// Requests with last path segments mentioned here
|
||||
|
@ -108,8 +108,24 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
||||
var project = data.projects[n];
|
||||
project.id = n;
|
||||
project.date = Date.parseExact(project.modified, "yyyy-MM-ddTHH:mm:ssZ");
|
||||
projects.push(project);
|
||||
for (var n in data.customMetaDataColumns) {
|
||||
var found = false;
|
||||
for(var i = 0; i < project.userMetaData.length; i++) {
|
||||
if (project.userMetaData[i].name === data.customMetaDataColumns[n].name) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
if (!found) {
|
||||
project.userMetaData.push({
|
||||
name: data.customMetaDataColumns[n].name,
|
||||
dispay: data.customMetaDataColumns[n].display,
|
||||
value: ""
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
projects.push(project);
|
||||
}
|
||||
projects.sort(function(a, b) { return b.date.getTime() - a.date.getTime(); });
|
||||
|
||||
@ -283,7 +299,8 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
||||
3 : {
|
||||
sorter : "isoDateParser"
|
||||
}
|
||||
}
|
||||
},
|
||||
widthFixed: false
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -91,6 +91,30 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
table-layout: fixed
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(1) {
|
||||
width: 1%
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(2) {
|
||||
width: 3%
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(3) {
|
||||
width: 3%
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(4) {
|
||||
width: 9%
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(5) {
|
||||
width: 15%
|
||||
}
|
||||
|
||||
#projects-container > table thead th:nth-child(8) {
|
||||
width: 35%
|
||||
}
|
||||
|
||||
#projects-container > table > tbody > tr > td {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user