Skip to content

Commit f9a3080

Browse files
committed
fix: datasource panel layout
1 parent 8b2e291 commit f9a3080

File tree

1 file changed

+39
-34
lines changed

1 file changed

+39
-34
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-datasource.vue

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,46 @@
2121
$t('instances.details.datasource.title', { dataSource: dataSource })
2222
"
2323
>
24-
<div>
25-
<sba-alert v-if="error" :error="error" :title="$t('term.fetch_failed')" />
24+
<sba-alert v-if="error" :error="error" :title="$t('term.fetch_failed')" />
2625

27-
<div v-if="current" class="level datasource-current">
28-
<div class="level-item has-text-centered">
29-
<div>
30-
<p
31-
class="heading has-bullet has-bullet-info"
32-
v-text="$t('instances.details.datasource.active_connections')"
33-
/>
34-
<p v-text="current.active" />
35-
</div>
36-
</div>
37-
<div class="level-item has-text-centered">
38-
<div>
39-
<p
40-
class="heading"
41-
v-text="$t('instances.details.datasource.min_connections')"
42-
/>
43-
<p v-text="current.min" />
44-
</div>
45-
</div>
46-
<div class="level-item has-text-centered">
47-
<div>
48-
<p
49-
class="heading"
50-
v-text="$t('instances.details.datasource.max_connections')"
51-
/>
52-
<p v-if="current.max >= 0" v-text="current.max" />
53-
<p v-else v-text="$t('instances.details.datasource.unlimited')" />
54-
</div>
55-
</div>
56-
</div>
57-
<datasource-chart v-if="chartData.length > 0" :data="chartData" />
58-
</div>
26+
<dl
27+
v-if="current"
28+
class="px-4 py-3 sm:grid sm:grid-cols-6 sm:gap-4 sm:px-6"
29+
>
30+
<dt
31+
class="text-sm font-medium text-gray-500 sm:col-span-4"
32+
v-text="$t('instances.details.datasource.active_connections')"
33+
/>
34+
<dd
35+
class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"
36+
v-text="current.active"
37+
/>
38+
39+
<dt
40+
class="text-sm font-medium text-gray-500 sm:col-span-4"
41+
v-text="$t('instances.details.datasource.min_connections')"
42+
/>
43+
<dd
44+
class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"
45+
v-text="current.min"
46+
/>
47+
48+
<dt
49+
class="text-sm font-medium text-gray-500 sm:col-span-4"
50+
v-text="$t('instances.details.datasource.max_connections')"
51+
/>
52+
<dd
53+
class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"
54+
v-if="current.max >= 0"
55+
v-text="current.max"
56+
/>
57+
<dd
58+
class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"
59+
v-else
60+
v-text="$t('instances.details.datasource.unlimited')"
61+
/>
62+
</dl>
63+
<datasource-chart v-if="chartData.length > 0" :data="chartData" />
5964
</sba-panel>
6065
</template>
6166

0 commit comments

Comments
 (0)