Improve grid scaling

This commit is contained in:
Christoph Kluge
2024-09-06 12:00:33 +02:00
parent df484dc816
commit 8e1c5a485f
3 changed files with 34 additions and 38 deletions

View File

@@ -4,7 +4,7 @@
Properties:
- `cJobs JobLinkResultList`: List of concurrent Jobs
- `showLinks Bool?`: Show list as clickable links [Default: false]
- `displayTitle Bool?`: If to display cardHeader with title [Default: true]
- `renderCard Bool?`: If to render component as content only or with card wrapping [Default: true]
- `width String?`: Width of the card [Default: 'auto']
- `height String?`: Height of the card [Default: '310px']
-->
@@ -64,17 +64,15 @@
</Card>
{:else}
<p>
Jobs running on the same node with overlapping runtimes using shared resources.
{cJobs.items.length} Jobs running on the same node with overlapping runtimes using shared resources.
( <a
href="/monitoring/jobs/?{cJobs.listQuery}"
target="_blank">See All</a
> )
</p>
<hr/>
{#if showLinks}
<ul>
<li>
<a
href="/monitoring/jobs/?{cJobs.listQuery}"
target="_blank">See All</a
>
</li>
{#each cJobs.items as cJob}
<li>
<a href="/monitoring/job/{cJob.id}" target="_blank"
@@ -96,8 +94,8 @@
<style>
ul {
columns: 2;
-webkit-columns: 2;
-moz-columns: 2;
columns: 3;
-webkit-columns: 3;
-moz-columns: 3;
}
</style>

View File

@@ -41,8 +41,6 @@
const lineWidth = clusterCockpitConfig.plot_general_lineWidth;
// Helpers
function getGradientR(x) {
if (x < 0.5) return 0;