diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss index d079af87b..b1a8b31fa 100644 --- a/stylesheets/_conversation.scss +++ b/stylesheets/_conversation.scss @@ -689,10 +689,12 @@ li.entry .error-icon-container { align-items: center; border-bottom: 2px solid #2090ea; margin-bottom: 15px; - margin-top: 2em; .text { padding: 5px 10px; + // this margin-top needs to be here (not on parent) because scrollIntoView uses the + // top of the element, not counting its margin + margin-top: 2em; margin-bottom: -12px; background-color: white; } diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index 6add4092c..dd59b2520 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -1501,10 +1501,10 @@ li.entry .error-icon-container { flex-direction: column; align-items: center; border-bottom: 2px solid #2090ea; - margin-bottom: 15px; - margin-top: 2em; } + margin-bottom: 15px; } .message-list .last-seen-indicator-view .text { padding: 5px 10px; + margin-top: 2em; margin-bottom: -12px; background-color: white; }