summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Detail.js3
-rw-r--r--src/views/Gallery.js6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/views/Detail.js b/src/views/Detail.js
index 70f4561..772abb1 100644
--- a/src/views/Detail.js
+++ b/src/views/Detail.js
@@ -50,6 +50,9 @@ export default function Detail({ node, visible, onClose }) {
video={data.images[0].uri.replace("player.", "")}
autoplay
loop
+ showByline={false}
+ showPortrait={false}
+ showTitle={false}
/>
</div>
)
diff --git a/src/views/Gallery.js b/src/views/Gallery.js
index ec1b234..e2652df 100644
--- a/src/views/Gallery.js
+++ b/src/views/Gallery.js
@@ -19,18 +19,18 @@ export default function Gallery({ images, visible }) {
function previous() {
setOpacity(0);
- setTimeout(() => setIndex(Math.max(0, index - 1)), 100);
+ setTimeout(() => setIndex(mod(index - 1, images.length)), 200);
// setTimeout(() => setOpacity(1), 500);
}
function next() {
setOpacity(0);
- setTimeout(() => setIndex(Math.min(images.length - 1, index + 1)), 100);
+ setTimeout(() => setIndex(mod(index + 1, images.length)), 200);
// setTimeout(() => setOpacity(1), 500);
}
function nextOrWrap() {
if (oneItem) return;
setOpacity(0);
- setTimeout(() => setIndex(mod(index + 1, images.length)), 100);
+ setTimeout(() => setIndex(mod(index + 1, images.length)), 200);
// setTimeout(() => setOpacity(1), 500);
}
function appear() {