diff --git a/background.html b/background.html index b5fb39499..156a7b3f4 100644 --- a/background.html +++ b/background.html @@ -222,7 +222,6 @@ - diff --git a/background_test.html b/background_test.html index 871fb44a2..f5fe916ed 100644 --- a/background_test.html +++ b/background_test.html @@ -222,7 +222,6 @@ - diff --git a/js/modules/signal.js b/js/modules/signal.js index e0b35e016..ffce318c6 100644 --- a/js/modules/signal.js +++ b/js/modules/signal.js @@ -80,9 +80,6 @@ const { const { SessionDropdown, } = require('../../ts/components/session/SessionDropdown'); -const { - SessionScrollButton, -} = require('../../ts/components/session/SessionScrollButton'); const { SessionRegistrationView, } = require('../../ts/components/session/SessionRegistrationView'); @@ -308,7 +305,6 @@ exports.setup = (options = {}) => { SessionPasswordModal, SessionPasswordPrompt, SessionDropdown, - SessionScrollButton, MediaGallery, Message, MessageBody, diff --git a/js/views/scroll_down_button_view.js b/js/views/scroll_down_button_view.js deleted file mode 100644 index 2f8bc60fb..000000000 --- a/js/views/scroll_down_button_view.js +++ /dev/null @@ -1,22 +0,0 @@ -/* global Whisper */ - -// eslint-disable-next-line func-names -(function() { - 'use strict'; - - window.Whisper = window.Whisper || {}; - - Whisper.ScrollDownButtonView = Whisper.View.extend({ - initialize() {}, - - render() { - this.scrollButtonView = new Whisper.ReactWrapperView({ - className: 'module-scroll-down', - Component: window.Signal.Components.SessionScrollButton, - }); - - this.$el.append(this.scrollButtonView.el); - return this; - }, - }); -})(); diff --git a/stylesheets/_session.scss b/stylesheets/_session.scss index 6b4b9c5de..dd1683daf 100644 --- a/stylesheets/_session.scss +++ b/stylesheets/_session.scss @@ -1337,7 +1337,8 @@ input { .session-scroll-button { animation: fadein $session-fadein-duration; - position: absolute; + position: sticky; + text-align: -webkit-right; bottom: 15px; right: 25px; z-index: 2; diff --git a/test/index.html b/test/index.html index c8610c097..3738f7bd9 100644 --- a/test/index.html +++ b/test/index.html @@ -259,7 +259,6 @@ - @@ -300,7 +299,6 @@ - diff --git a/test/views/scroll_down_button_view_test.js b/test/views/scroll_down_button_view_test.js deleted file mode 100644 index df099a6b6..000000000 --- a/test/views/scroll_down_button_view_test.js +++ /dev/null @@ -1,12 +0,0 @@ -/* global Whisper */ - -describe('ScrollDownButtonView', () => { - it('renders ', () => { - const view = new Whisper.ScrollDownButtonView(); - view.render(); - assert.match( - view.$el.html(), - /