feat(dashboard): somewhat better styling of shard status page
This commit is contained in:
parent
65e2bb0234
commit
ba9c074dc2
@ -48,8 +48,7 @@
|
||||
.wrapper {
|
||||
height: 55px;
|
||||
width: 55px;
|
||||
display: block;
|
||||
float: left;
|
||||
display: inline-block;
|
||||
}
|
||||
.shard:hover {
|
||||
cursor: pointer;
|
||||
|
@ -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}  </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>
|
Loading…
Reference in New Issue
Block a user