Skip to content

Commit 5d0bfa4

Browse files
committed
improve line break in table
1 parent 2f75560 commit 5d0bfa4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webui/src/components/dashboard/kafka/KafkaGroups.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ function getClientSoftware(member: KafkaMember) {
112112
</span>
113113
</td>
114114
<td>{{ group.state }}</td>
115-
<td>{{ group.protocol }}</td>
116-
<td>{{ group.coordinator }}</td>
115+
<td v-html="group.protocol.replace(/([a-z])([A-Z])/g, '$1<wbr>$2')"></td>
116+
<td v-html="group.coordinator.replace(/([^:]*):(.*)/g, '$1<wbr>:$2')"></td>
117117
<td>{{ group.leader }}</td>
118118
<td>
119119
<ul class="members">

webui/src/components/dashboard/kafka/Servers.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const servers = computed(() => {
4747
<tbody>
4848
<tr v-for="server in servers" :key="server.host">
4949
<td>{{ server.name }}</td>
50-
<td>{{ server.host }}</td>
50+
<td v-html="server.host.replace(/([^:]*):(.*)/g, '$1<wbr>:$2')"></td>
5151
<td><markdown :source="server.description" class="description" :html="true"></markdown></td>
5252
<td>
5353
<ul class="tags">

0 commit comments

Comments
 (0)