Skip to content

Commit

Permalink
fix ui issue with long cluster names, fixes #230
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed May 23, 2024
1 parent 048d796 commit 2686dbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## 1.0.7

Expand Down
7 changes: 5 additions & 2 deletions src/components/home/HomeStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="col-3">
<q-card v-if="data" class="full-height" data-testid="cluster-status">
<q-card-section>
<h3 class="text-h6 q-my-none">{{ data.cluster_name }}</h3>
<h3 class="text-h6 q-my-none ellipsis" :title="data.cluster_name"> {{ data.cluster_name }}</h3>
<span class="text-muted font-13 word-break-all">{{ connectionStore.activeCluster?.uuid }}</span>
</q-card-section>
<q-card-section class="items-center justify-between flex">
Expand Down Expand Up @@ -46,7 +46,9 @@
</q-card-section>
<q-card-section class="text-muted">
<p class="q-mb-sm">{{ data.indices.shards?.primaries || 0 }} primaries</p>
<p class="q-mb-none">{{ (data.indices?.shards?.total || 0) - (data.indices.shards?.primaries || 0) }} replicas</p>
<p class="q-mb-none">
{{ (data.indices?.shards?.total || 0) - (data.indices.shards?.primaries || 0) }} replicas
</p>
</q-card-section>
</q-card>
</div>
Expand Down Expand Up @@ -87,6 +89,7 @@
import ClusterInformation from './ClusterInformation.vue'
import UnhealthyReason from './UnhealthyReason.vue'
import { useConnectionStore } from '../../store/connection.ts'
const connectionStore = useConnectionStore()
type ClusterStats = {
Expand Down

0 comments on commit 2686dbb

Please sign in to comment.