1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

fixed image sliders appearance for square images

This commit is contained in:
Fedor Katurov 2020-04-24 14:42:13 +07:00
parent ad2c8dca80
commit 38fd09cfe1
4 changed files with 7 additions and 6 deletions

View file

@ -183,7 +183,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
setIsDragging(false);
normalizeOffset();
if (+new Date() - drag_start < 300) {
if (Math.abs(+new Date() - drag_start) < 200) {
// click detection
onOpenPhotoSwipe();
}

View file

@ -4,8 +4,8 @@
min-width: 0;
transition: height 0.25s;
border-radius: $radius;
margin-right: -10px;
margin-left: -10px;
margin-right: -$gap / 2;
margin-left: -$gap / 2;
.is_loading {
.placeholder {
@ -51,7 +51,7 @@
display: flex;
align-items: center;
justify-content: center;
padding: 0 10px;
padding: 0 $gap / 2;
&:global(.is_active) {
opacity: 1;