feat(dashboard): tweak status page styling

This commit is contained in:
Jake/Rads 2022-06-24 20:47:00 +02:00
parent 43b6792e30
commit 191136cd94
2 changed files with 44 additions and 25 deletions

View File

@ -46,8 +46,7 @@
<style>
.wrapper {
height: 55px;
width: 55px;
position: relative;
display: inline-block;
}
.shard:hover {
@ -63,10 +62,8 @@
text-align: center;
justify-content: center;
z-index: 1;
height: 50px;
width: 50px;
margin-right: 5px;
margin-bottom: 5px;
height: 3em;
width: 3em;
border-radius: 2px;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
@ -79,10 +76,11 @@
.more-info {
/* display: none; */
position: absolute;
margin-top: 3em;
top: 100%;
right: -50%;
will-change: transform;
min-height: 150px;
width: 200px;
width: 12em;
z-index: 2;
border-radius: 5px;
background-color: #333;

View File

@ -154,30 +154,51 @@
</Col>
</Row>
{/if}
{#each Object.keys(clusters) as key}
<Row>
<Col class="mx-auto" xs={12} lg={11} xl={10}>
<div class="cluster-grid">
{#each Object.keys(clusters) as key}
<div class="cluster-card">
<span class="cluster-text">Cluster {key} &nbsp</span>
</div>
<div class="cluster-shards">
{#each clusters[key] as shard}
<ShardItem shard={shard} bind:hover={hover} />
{/each}
</div>
{/each}
</div>
</Col>
</Row>
{/each}
</Container>
<style>
.cluster-card {
.cluster-shards {
display: flex;
align-items: center;
gap: 5px;
flex-wrap: wrap;
margin-bottom: 2.5px;
margin-bottom: 0.5em;
}
.cluster-grid {
display: grid;
grid-template-columns: 100%;
gap: 0.5em;
}
@media (min-width: 576px) {
.cluster-card {
text-align: right;
margin-bottom: 0.5em;
}
.cluster-text {
min-width: 110px;
text-align: right;
line-height: 3em;
}
.cluster-grid {
grid-template-columns: max-content 1fr;
}
}
</style>