Scrollable container with top/bottom IntersectionObserver sentinels. Fires onTopVisibilityChange when the top is fully in view and onEndReached when the bottom is within 100px. Used by infinite log and event streams.
23 lines
283 B
CSS
23 lines
283 B
CSS
.scrollArea {
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.sentinel {
|
|
height: 1px;
|
|
width: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loadingMore,
|
|
.endOfStream {
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.endOfStream {
|
|
opacity: 0.5;
|
|
}
|