feat(dashboard): somewhat better styling of shard status page

This commit is contained in:
spiral 2022-06-15 00:08:47 -04:00
parent 65e2bb0234
commit ba9c074dc2
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E
2 changed files with 23 additions and 15 deletions

View File

@ -48,8 +48,7 @@
.wrapper {
height: 55px;
width: 55px;
display: block;
float: left;
display: inline-block;
}
.shard:hover {
cursor: pointer;

View File

@ -96,7 +96,7 @@
</script>
<Container fluid>
<Container>
<Row>
<Col class="mx-auto" xs={12} lg={11} xl={10}>
<Card class="mb-4">
@ -157,18 +157,27 @@
{#each Object.keys(clusters) as key}
<Row>
<Col class="mx-auto" xs={12} lg={11} xl={10}>
<Card class="mb-4">
<CardBody>
<CardTitle style="margin-top: 8px; outline: none;">
Cluster {key}
</CardTitle>
<br>
{#each clusters[key] as shard}
<ShardItem shard={shard} bind:hover={hover} />
{/each}
</CardBody>
</Card>
<div class="cluster-card">
<span class="cluster-text">Cluster {key} &nbsp</span>
{#each clusters[key] as shard}
<ShardItem shard={shard} bind:hover={hover} />
{/each}
</div>
</Col>
</Row>
{/each}
</Container>
</Container>
<style>
.cluster-card {
display: flex;
align-items: center;
flex-wrap: wrap;
margin-bottom: 2.5px;
}
.cluster-text {
min-width: 110px;
text-align: right;
}
</style>