Skip to content

Commit aae6848

Browse files
Merge pull request #88 from NessieCanCode/fix-summary-table-size-and-layout
Reorder summary charts and add table spacing
2 parents c5c62e5 + ac07d09 commit aae6848

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/slurmcostmanager.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ nav button:hover {
3131

3232
.table-container {
3333
overflow-x: auto;
34+
width: 350px;
35+
margin: 1em;
3436
}
3537

3638
.summary-table th {

src/slurmcostmanager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,12 @@ function Summary({ summary, details, daily, monthly }) {
495495
})
496496
})
497497
),
498-
React.createElement('h3', null, 'Historical CPU/GPU-hrs (monthly)'),
499-
React.createElement(HistoricalUsageChart, { monthly }),
498+
React.createElement('h3', null, 'Top 10 PIs by consumption'),
499+
React.createElement(PiConsumptionTable, { details }),
500500
React.createElement('h3', null, 'CPU/GPU-hrs per Slurm account'),
501501
React.createElement(AccountsChart, { details }),
502-
React.createElement('h3', null, 'Top 10 PIs by consumption'),
503-
React.createElement(PiConsumptionTable, { details })
502+
React.createElement('h3', null, 'Historical CPU/GPU-hrs (monthly)'),
503+
React.createElement(HistoricalUsageChart, { monthly })
504504
);
505505
}
506506

0 commit comments

Comments
 (0)