Go to top Butten

AllanD's Avatar
AllanD · in Feedback
2 replies 305 views

Was just scrolling around and realized there isn't a go to top button or a bottom breadcrumb. Just a thought.

We don't have this indeed.

If you want to have one, that is easily achieved with a code that you can add in the "Below the Board" template:

<style>
        #goTopBtn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: none;
            background: #1a152c;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px;
            font-size: 18px;
            cursor: pointer;
        }
    </style>
    <button id="goTopBtn" onclick="window.scrollTo({ top: 0, behavior: 'smooth' });">Top</button>

<script>
    const goTopBtn = document.getElementById('goTopBtn');
    window.addEventListener('scroll', () => {
        goTopBtn.style.display = window.scrollY > 200 ? 'block' : 'none';
    });
</script>

That said, we can probably implement this soon.

👍 1

Thank you will be using that.

Theme: FS 2.0
Create Your Community with ForumSpark

ForumSpark is a modern community platform built on custom software. It combines the familiar feel of classic forums with a fast, simple experience designed for today’s communities.