Skip to content

Commit ba32da8

Browse files
committed
fix: adjust styles for IntersectionObserver rows
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 8a07850 commit ba32da8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/components/table/LogTable.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
</tr>
2525
</thead>
2626
<tbody ref="tableBody" :style="tbodyStyle" class="log-table__body">
27-
<tr v-if="sortedByTime === 'ascending'">
28-
<td colspan="5" class="log-table__load-more">
27+
<tr v-if="sortedByTime === 'ascending'" class="log-table__load-more">
28+
<td>
2929
<IntersectionObserver v-if="logStore.hasRemainingEntries" @intersection="loadMore">
3030
{{ t('logreader', 'Loading older log entries') }}
3131
</IntersectionObserver>
@@ -42,8 +42,8 @@
4242
@show-details="showDetailsForRow" />
4343
</tbody>
4444
<tfoot role="rowgroup" class="log-table__footer">
45-
<tr v-if="sortedByTime !== 'ascending'">
46-
<td colspan="5" class="log-table__load-more">
45+
<tr v-if="sortedByTime !== 'ascending'" class="log-table__load-more">
46+
<td>
4747
<IntersectionObserver v-if="logStore.hasRemainingEntries" @intersection="loadMore">
4848
{{ t('logreader', 'Loading older log entries') }}
4949
</IntersectionObserver>
@@ -226,8 +226,13 @@ function onScroll() {
226226
}
227227
228228
&__load-more {
229-
text-align: center;
230-
padding-block: 4px;
229+
display: flex;
230+
231+
:deep(td) {
232+
flex-basis: 100%;
233+
text-align: center;
234+
padding-block: 4px;
235+
}
231236
}
232237
233238
&__header,

0 commit comments

Comments
 (0)