From 4016182b89dacbc9095ee7f4d2e021bb9fad65d0 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 22 Jun 2021 20:32:55 +0300 Subject: [PATCH 1/4] fix z-indexes --- src/components/attachment/attachment.scss | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index f902f37d6..b4a81a08c 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -13,14 +13,12 @@ border-radius: var(--attachmentRadius, $fallback--attachmentRadius); border-color: $fallback--border; border-color: var(--border, $fallback--border); - z-index: 1; .attachment-wrapper { flex: 1 1 auto; height: 100%; position: relative; overflow: hidden; - z-index: 2; } .description-container { @@ -44,7 +42,6 @@ left: 0; right: 0; top: 0; - z-index: 1; background: var(--popover); box-shadow: var(--popupShadow); opacity: 0; @@ -91,7 +88,6 @@ max-height: 100%; object-fit: contain; align-self: center; - z-index: 0; } } @@ -123,13 +119,12 @@ position: absolute; right: 0; top: 0; - z-index: 2; margin-top: 0.5em; margin-right: 0.5em; + z-index: 1; .attachment-button { padding: 0; - z-index: 4; border-radius: $fallback--tooltipRadius; border-radius: var(--tooltipRadius, $fallback--tooltipRadius); text-align: center; From 4ba8d95a10fdf22a7cefc56ea0515b7c30ee53ff Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 22 Jun 2021 20:33:57 +0300 Subject: [PATCH 2/4] fix videos and related not having working drag controls --- src/components/attachment/attachment.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index b8be82da8..e1e700c46 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -127,7 +127,7 @@ /> - - + - - +
- - +
Date: Tue, 22 Jun 2021 20:35:34 +0300 Subject: [PATCH 3/4] fix videos not stretching to container --- src/components/attachment/attachment.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index b4a81a08c..0cb23a37c 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -84,8 +84,8 @@ & .video-container { & .flash, & video { - max-width: 100%; - max-height: 100%; + width: 100%; + height: 100%; object-fit: contain; align-self: center; } From 628b99d117240d3335d1730e66d7747c662a3acd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 22 Jun 2021 20:37:08 +0300 Subject: [PATCH 4/4] don't stretch columns when uploading media --- src/components/gallery/gallery.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gallery/gallery.vue b/src/components/gallery/gallery.vue index 424a15f12..5a2de68d1 100644 --- a/src/components/gallery/gallery.vue +++ b/src/components/gallery/gallery.vue @@ -166,7 +166,7 @@ display: grid; grid-column-gap: 0.5em; grid-row-gap: 0.5em; - grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); .gallery-item { margin: 0;