Skip to content

Commit 380d1b2

Browse files
committed
feat(timeline): events: scroll to bottom btn
1 parent 89870ea commit 380d1b2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/app-frontend/src/features/timeline/TimelineEventList.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,11 @@ export default defineComponent({
197197
filter,
198198
filteredEvents,
199199
itemHeight,
200-
inspectedEvent,
200+
isAtScrollBottom,
201201
inspectEvent,
202202
selectEvent,
203203
onScroll,
204+
scrollToBottom,
204205
}
205206
},
206207
})
@@ -209,7 +210,7 @@ export default defineComponent({
209210
<template>
210211
<div
211212
v-if="selectedEvent && selectedLayer"
212-
class="h-full flex flex-col"
213+
class="h-full flex flex-col relative"
213214
>
214215
<div class="flex-none flex flex-col items-stretch border-gray-200 dark:border-gray-800 border-b">
215216
<VueGroup
@@ -254,6 +255,14 @@ export default defineComponent({
254255
/>
255256
</template>
256257
</RecycleScroller>
258+
259+
<VueButton
260+
v-if="!isAtScrollBottom"
261+
v-tooltip="'Scroll to bottom'"
262+
icon-left="keyboard_arrow_down"
263+
class="icon-button absolute bottom-1 right-4 rounded-full shadow-md"
264+
@click="scrollToBottom()"
265+
/>
257266
</div>
258267

259268
<EmptyPane

0 commit comments

Comments
 (0)