Skip to content

Commit 2686dbb

Browse files
committed
fix ui issue with long cluster names, fixes cars10#230
1 parent 048d796 commit 2686dbb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* fix update&delete documents that use `routing`, fixes [#235](https://github.com/cars10/elasticvue/issues/235)
66
* adds shard relocation confirm msg and cancel button, fixes [#236](https://github.com/cars10/elasticvue/issues/236)
7+
* fix ui issue with long cluster names, fixes [#230](https://github.com/cars10/elasticvue/issues/230)
78

89
## 1.0.7
910

src/components/home/HomeStatus.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="col-3">
66
<q-card v-if="data" class="full-height" data-testid="cluster-status">
77
<q-card-section>
8-
<h3 class="text-h6 q-my-none">{{ data.cluster_name }}</h3>
8+
<h3 class="text-h6 q-my-none ellipsis" :title="data.cluster_name"> {{ data.cluster_name }}</h3>
99
<span class="text-muted font-13 word-break-all">{{ connectionStore.activeCluster?.uuid }}</span>
1010
</q-card-section>
1111
<q-card-section class="items-center justify-between flex">
@@ -46,7 +46,9 @@
4646
</q-card-section>
4747
<q-card-section class="text-muted">
4848
<p class="q-mb-sm">{{ data.indices.shards?.primaries || 0 }} primaries</p>
49-
<p class="q-mb-none">{{ (data.indices?.shards?.total || 0) - (data.indices.shards?.primaries || 0) }} replicas</p>
49+
<p class="q-mb-none">
50+
{{ (data.indices?.shards?.total || 0) - (data.indices.shards?.primaries || 0) }} replicas
51+
</p>
5052
</q-card-section>
5153
</q-card>
5254
</div>
@@ -87,6 +89,7 @@
8789
import ClusterInformation from './ClusterInformation.vue'
8890
import UnhealthyReason from './UnhealthyReason.vue'
8991
import { useConnectionStore } from '../../store/connection.ts'
92+
9093
const connectionStore = useConnectionStore()
9194
9295
type ClusterStats = {

0 commit comments

Comments
 (0)