From a443072f2754ea99006a9fa58bbbfbb58f5114cd Mon Sep 17 00:00:00 2001 From: Emma Winston Date: Wed, 9 Oct 2019 20:22:18 +0100 Subject: [PATCH] Fix default mascot behaviour in advanced web view Corrected version of self-closed pull request #27 --- app/javascript/mastodon/features/compose/index.js | 14 +++++++++++++- app/javascript/styles/mastodon/components.scss | 13 ++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/javascript/mastodon/features/compose/index.js b/app/javascript/mastodon/features/compose/index.js index 74f695fba..deb6748e4 100644 --- a/app/javascript/mastodon/features/compose/index.js +++ b/app/javascript/mastodon/features/compose/index.js @@ -40,7 +40,19 @@ let instanceMascot; if (mascot) { instanceMascot = ; } else { - instanceMascot = ; + instanceMascot = ; } export default @connect(mapStateToProps) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index d7e1722bf..a7c8a334b 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -2533,19 +2533,19 @@ a.account__display-name { min-height: 47px; display: none; - > img { + > img, svg { display: block; object-fit: contain; object-position: bottom left; width: 100%; - height: 100%; + height: auto; pointer-events: none; user-drag: none; user-select: none; } @media screen and (min-height: 640px) { - display: block; + display: flex; } } @@ -6597,11 +6597,10 @@ noscript { } .drawer__inner__mastodon svg#hometownlogo { - position: absolute; + box-sizing: border-box; fill: $secondary-text-color; - width: 100px; - height: 100px; - bottom: 0; + margin: 0 0 10px 10px; + align-self: flex-end; } div.status__content,