feat(dashboard): somewhat better styling of shard status page
This commit is contained in:
parent
65e2bb0234
commit
ba9c074dc2
@ -48,8 +48,7 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
height: 55px;
|
height: 55px;
|
||||||
width: 55px;
|
width: 55px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
.shard:hover {
|
.shard:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Container fluid>
|
<Container>
|
||||||
<Row>
|
<Row>
|
||||||
<Col class="mx-auto" xs={12} lg={11} xl={10}>
|
<Col class="mx-auto" xs={12} lg={11} xl={10}>
|
||||||
<Card class="mb-4">
|
<Card class="mb-4">
|
||||||
@ -157,18 +157,27 @@
|
|||||||
{#each Object.keys(clusters) as key}
|
{#each Object.keys(clusters) as key}
|
||||||
<Row>
|
<Row>
|
||||||
<Col class="mx-auto" xs={12} lg={11} xl={10}>
|
<Col class="mx-auto" xs={12} lg={11} xl={10}>
|
||||||
<Card class="mb-4">
|
<div class="cluster-card">
|
||||||
<CardBody>
|
<span class="cluster-text">Cluster {key}  </span>
|
||||||
<CardTitle style="margin-top: 8px; outline: none;">
|
|
||||||
Cluster {key}
|
|
||||||
</CardTitle>
|
|
||||||
<br>
|
|
||||||
{#each clusters[key] as shard}
|
{#each clusters[key] as shard}
|
||||||
<ShardItem shard={shard} bind:hover={hover} />
|
<ShardItem shard={shard} bind:hover={hover} />
|
||||||
{/each}
|
{/each}
|
||||||
</CardBody>
|
</div>
|
||||||
</Card>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
{/each}
|
{/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>
|
Loading…
Reference in New Issue
Block a user