Skip to content

Commit 2a28c8a

Browse files
committed
Fix moving arround columns lenght
1 parent 2354788 commit 2a28c8a

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

css/wuala_theme.css

+19
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,23 @@
4444

4545
.browseable{
4646
cursor: pointer;
47+
}
48+
49+
th.browse-plus{
50+
width:50px;
51+
}
52+
th.browse-action{
53+
width: 200px;
54+
}
55+
th.browse-type{
56+
width: 50px;
57+
}
58+
th.browse-kind{
59+
width: 50px;
60+
}
61+
th.browse-mdate{
62+
width: 200px;
63+
}
64+
th.browse-size{
65+
width:100px;
4766
}

js/wuala_theme.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ WualaDisplay.prototype.GetBrowsingPathElement = function(path, onBrowseChangeCB)
5050

5151
WualaDisplay.prototype.GetFilesListElement = function(path){
5252
var browse_div = document.createElement("table");
53+
browse_div.style.tableLayout = "fixed";
5354
browse_div.className = "footable twelve";
5455
browsing.innerHTML = "";
5556
this.thead = document.createElement("thead");
@@ -59,45 +60,47 @@ WualaDisplay.prototype.GetFilesListElement = function(path){
5960

6061
//For the mobile
6162
var th = document.createElement("th");
62-
th.className = "mob";
63+
th.className = "mob browse-plus";
6364
tr.appendChild(th);
6465
//File Type
6566
th = document.createElement("th");
6667
th.innerHTML = "#";
68+
th.className = "browse-type";
6769
tr.appendChild(th);
6870

6971
//FileName
7072
th = document.createElement("th");
7173
th.innerHTML = "Name";
74+
th.className = "browse-name";
7275
tr.appendChild(th);
7376

7477
//mob
7578
th = document.createElement("th");
76-
th.className = "mob";
79+
th.className = "mob browse-unknown";
7780
tr.appendChild(th);
7881

7982
//Size
8083
th = document.createElement("th");
8184
th.innerHTML = "Size";
82-
th.className = "hide-for-small";
85+
th.className = "hide-for-small browse-size";
8386
tr.appendChild(th);
8487

8588
//Mdate
8689
th = document.createElement("th");
8790
th.innerHTML = "Change";
88-
th.className = "hide-for-small";
91+
th.className = "hide-for-small browse-mdate";
8992
tr.appendChild(th);
9093

9194
//kind
9295
th = document.createElement("th");
9396
th.innerHTML = "Kind";
94-
th.className = "hide-for-small";
97+
th.className = "hide-for-small browse-kind";
9598
tr.appendChild(th);
9699

97100
//Actions
98101
th = document.createElement("th");
99102
th.innerHTML = "Actions";
100-
th.className = "hide-for-small";
103+
th.className = "hide-for-small browse-action";
101104
tr.appendChild(th);
102105

103106
this.tbody = document.createElement("tbody");
@@ -220,7 +223,7 @@ WualaDisplay.prototype.AddElement = function(list, element, displayName, onBrows
220223
mobtr.className = "hide";
221224
mobtr.style.display = "none";
222225
td = document.createElement("td");
223-
td.colSpan = "8";
226+
td.colSpan = "4";
224227
mobtr.appendChild(td);
225228

226229
if (null != onDownloadCB && undefined != onDownloadCB){

0 commit comments

Comments
 (0)