Skip to content

Commit

Permalink
table style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Feb 17, 2024
1 parent 5f70182 commit 1dcf868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/components/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,16 @@ export class Table extends Component {
// Custom data headers
const customHeaders = attendancearr[0].custom_data;
for (const [key, value] of Object.entries(JSON.parse(customHeaders))) {
html += `<th data-csv="${sanitizeText(key)}">${sanitizeText(key)}</th>`;
html += `<th style="min-width: max-content; text-wrap: nowrap;" data-csv="${sanitizeText(
key,
)}">${sanitizeText(key)}</th>`;
}
// Event headers
for (let i = 0; i < events.length; i++) {
var startDate = new Date(events[i].starttimestamp * 1000);
var endDate = new Date(events[i].endtimestamp * 1000);
let eventName = events[i].name || '[Unnamed]';
html += `<th class="cell" data-time="${sanitizeText(
html += `<th style="min-width: max-content; text-wrap: nowrap;" class="cell" data-time="${sanitizeText(
events[i].starttimestamp,
)}" data-name="${sanitizeText(events[i].name)}" data-csv="${sanitizeText(
eventName,
Expand Down

0 comments on commit 1dcf868

Please sign in to comment.