Commit 46c8aeb8 by Simon

Fix beug frontend

parent 8beecaf4
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
border-right: none; border-right: none;
} }
.doodle-table thead tr th:last-child { .doodle-table.backend thead tr th:last-child {
border-right: none; border-right: none;
min-width: 130px; min-width: 130px;
max-width: 145px; max-width: 145px;
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
this.getHours(); this.getHours();
this.createTable(); this.createTable();
this.initCSS();
//Remet l'overflow pour le responsive en front //Remet l'overflow pour le responsive en front
$('table').parent().css('overflow-x', 'auto'); $('table').parent().css('overflow-x', 'auto');
...@@ -52,6 +54,11 @@ ...@@ -52,6 +54,11 @@
`); `);
}; };
this.initCSS = function() {
$('.empty').css('background', '#fafafa')
};
/** /**
* Create table header for hours * Create table header for hours
* @returns {string} * @returns {string}
...@@ -88,7 +95,7 @@ ...@@ -88,7 +95,7 @@
if(this.json[index].includes(this.hours[key])) if(this.json[index].includes(this.hours[key]))
html = '<td>' + createInputBox(this.hours[key], index) + '</td>'; html = '<td>' + createInputBox(this.hours[key], index) + '</td>';
else else
html = '<td></td>'; html = '<td class="empty"></td>';
$td.append(html); $td.append(html);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment