Skip to content

Commit 88d3887

Browse files
committed
fix change id to be unique
1 parent 4fe5678 commit 88d3887

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

webui/src/components/dashboard/ConfigCard.vue

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,28 @@ function formatProvider(config: ConfigRef) {
7979
<section class="card" aria-labelledby="configs" v-if="useCard">
8080
<div class="card-body">
8181
<h2 v-if="!hideTitle" id="configs" class="card-title text-center">{{ title }}</h2>
82-
<table class="table dataTable selectable" style="table-layout: fixed;" aria-labelledby="configs">
83-
<thead>
84-
<tr>
85-
<th scope="col" class="text-left col-6 col-md-9">URL</th>
86-
<th scope="col" class="text-center col-2">Provider</th>
87-
<th scope="col" class="text-center col-2">Last Update</th>
88-
</tr>
89-
</thead>
90-
<tbody>
91-
<tr scope="row" v-for="config in configs" :key="config.url" @mouseup.left="gotToConfig(config)" @mousedown.middle="gotToConfig(config, true)">
92-
<td>
93-
<router-link @click.stop class="row-link" :to="{ name: getRouteName('config').value, params: { id: config.id } }">
94-
{{ config.url }}
95-
</router-link>
96-
</td>
97-
<td class="text-center">{{ formatProvider(config) }}</td>
98-
<td class="text-center">{{ format(config.time) }}</td>
99-
</tr>
100-
</tbody>
101-
</table>
82+
<div class="table-responsive-sm">
83+
<table class="table dataTable selectable" aria-labelledby="configs">
84+
<thead>
85+
<tr>
86+
<th scope="col" class="text-left col-6 col-md-9">URL</th>
87+
<th scope="col" class="text-center col-2">Provider</th>
88+
<th scope="col" class="text-center col-2">Last Update</th>
89+
</tr>
90+
</thead>
91+
<tbody>
92+
<tr scope="row" v-for="config in configs" :key="config.url" @mouseup.left="gotToConfig(config)" @mousedown.middle="gotToConfig(config, true)">
93+
<td>
94+
<router-link @click.stop class="row-link" :to="{ name: getRouteName('config').value, params: { id: config.id } }">
95+
{{ config.url }}
96+
</router-link>
97+
</td>
98+
<td class="text-center">{{ formatProvider(config) }}</td>
99+
<td class="text-center">{{ format(config.time) }}</td>
100+
</tr>
101+
</tbody>
102+
</table>
103+
</div>
102104
</div>
103105
</section>
104106

webui/src/components/dashboard/mail/Service.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (serviceName){
3939
<button id="mailboxes-tab" data-bs-toggle="tab" data-bs-target="#mailboxes" type="button" role="tab" aria-controls="mailboxes" aria-selected="false">Mailboxes</button>
4040
<button v-if="service.rules && service.rules.length > 0" id="rules-tab" data-bs-toggle="tab" data-bs-target="#rules" type="button" role="tab" aria-controls="rules" aria-selected="false">Rules</button>
4141
<button id="settings-tab" data-bs-toggle="tab" data-bs-target="#settings" type="button" role="tab" aria-controls="settings" aria-selected="false">Settings</button>
42-
<button id="configs-tab" data-bs-toggle="tab" data-bs-target="#configs" type="button" role="tab" aria-controls="configs" aria-selected="false">Configs</button>
42+
<button id="configs-tab" data-bs-toggle="tab" data-bs-target="#configs-panel" type="button" role="tab" aria-controls="configs-panel" aria-selected="false">Configs</button>
4343
</div>
4444
<div class="tab-content">
4545
<div class="tab-pane fade show active" id="servers" role="tabpanel" aria-labelledby="servers-tab">
@@ -62,7 +62,7 @@ if (serviceName){
6262
</div>
6363
</div>
6464
<div class="tab-content">
65-
<div class="tab-pane fade" id="configs" role="tabpanel" aria-labelledby="configs-tab">
65+
<div class="tab-pane fade" id="configs-panel" role="tabpanel" aria-labelledby="configs-tab">
6666
<config-card :configs="service.configs" :use-card="false" />
6767
</div>
6868
</div>

0 commit comments

Comments
 (0)