From cbab830d8a1b4f9106b652d889647f95e02b0d9e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Nov 2017 00:50:18 +0300 Subject: [PATCH 1/5] fixes fullscreen video having borders and border-radius in firefox --- src/components/attachment/attachment.vue | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 98cd97fb..d4985732 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -39,6 +39,16 @@ margin: 0.5em 0.7em 0.6em 0.0em; align-self: flex-start; + border-style: solid; + border-width: 1px; + border-radius: 5px; + overflow: hidden; + + // fixes small gap below video + &.video { + line-height: 0; + } + &.html { flex-basis: 100%; display: flex; @@ -53,7 +63,6 @@ margin: 10px; padding: 5px; background: rgba(230,230,230,0.6); - border-radius: 5px; font-weight: bold; z-index: 4; } @@ -61,8 +70,6 @@ video { max-height: 500px; height: 100%; - border: 1px solid; - border-radius: 5px; width: 100%; z-index: 0; } @@ -75,14 +82,9 @@ width: 100%; height: 100%; flex: 1; - border: 1px solid; - border-radius: 5px; } .oembed { - border: 1px solid; - border-radius: 5px; - border-color: inherit; width: 100%; margin-right: 15px; display: flex; @@ -117,9 +119,6 @@ flex: 1; img { - border-style: solid; - border-width: 1px; - border-radius: 5px; object-fit: contain; width: 100%; height: 100%; /* If this isn't here, chrome will stretch the images */ From ec55d49b882e6d4b7214d649fe87c39d0fdfe58e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Nov 2017 00:57:41 +0300 Subject: [PATCH 2/5] =?UTF-8?q?kiinte=C3=A4t=20venytetyt=20tunteet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post_status_form/post_status_form.vue | 1 + src/components/status/status.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 0a744c10..33614637 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -164,6 +164,7 @@ width: 24px; height: 24px; border-radius: 2px; + object-fit: contain; } span { line-height: 24px; diff --git a/src/components/status/status.vue b/src/components/status/status.vue index cc315a90..90fb45b9 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -188,6 +188,7 @@ img, video { max-width: 100%; max-height: 400px; + object-fit: contain; } blockquote { From 6a44d1c9ac7bd65ff1dfec97421fb669cdee84af Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Nov 2017 01:08:06 +0300 Subject: [PATCH 3/5] small shadows + show placeholder for empty panel body --- src/App.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.scss b/src/App.scss index 0e89a429..944c32b6 100644 --- a/src/App.scss +++ b/src/App.scss @@ -127,6 +127,14 @@ main-router { margin: 0.5em; border-radius: 10px; + box-shadow: 1px 1px 3px rgba(0,0,0,.5); +} + +.panel-body:empty::before { + content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations + display: block; + margin: 20px; + text-align: center; } .panel-heading { From 46765d5c1a6fc2e799221eb3c4ba217590a63554 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Nov 2017 01:26:43 +0300 Subject: [PATCH 4/5] some fixes towards how conversations appear --- src/components/conversation/conversation.vue | 2 +- src/components/status/status.vue | 13 +++++++++++-- src/components/timeline/timeline.vue | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index b430d875..ea222ea2 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -1,5 +1,5 @@