From 7f202b026f9ec73891ffaf3355693356761c806e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 29 Jan 2019 09:29:24 +0000 Subject: [PATCH] Fix jumpy right position of selected items counter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The negative right margin counteracts the sticky footer being wider than its containing column. This is only the case when it’s actually sticky. --- app/assets/stylesheets/components/message.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/components/message.scss b/app/assets/stylesheets/components/message.scss index c36c7bae1..b6c0b1dd0 100644 --- a/app/assets/stylesheets/components/message.scss +++ b/app/assets/stylesheets/components/message.scss @@ -110,9 +110,14 @@ &-selected-counter { position: absolute; - right: $gutter-half; + right: 0; top: $gutter - 1px; color: $secondary-text-colour; + + .content-fixed & { + right: $gutter-half; + } + } }