1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Adds progress notification bar (#526)

This commit is contained in:
Amir Raminfar
2020-06-23 13:55:45 -07:00
committed by GitHub
parent 6f40303aa3
commit 1810764092
5 changed files with 127 additions and 3 deletions

View File

@@ -4,10 +4,14 @@
<slot name="header"></slot>
</header>
<main ref="content" :data-scrolling="scrollable">
<div class="scrollbar-progress">
<scroll-progress v-show="paused"></scroll-progress>
</div>
<slot></slot>
<div ref="scrollObserver"></div>
</main>
<div class="scroll-bar-notification">
<div class="scrollbar-notification">
<transition name="fade">
<button
class="button"
@@ -24,6 +28,7 @@
<script>
import Icon from "./Icon";
import ScrollProgress from "./ScrollProgress";
export default {
props: {
@@ -34,6 +39,7 @@ export default {
},
components: {
Icon,
ScrollProgress,
},
name: "ScrollableView",
data() {
@@ -85,7 +91,16 @@ section {
scroll-snap-type: y proximity;
}
.scroll-bar-notification {
.scrollbar-progress {
text-align: right;
margin-right: 125px;
.scroll-progress {
position: fixed;
top: 30px;
}
}
.scrollbar-notification {
text-align: right;
margin-right: 65px;
button {