Tkd-Alex / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.2k stars 635 forks source link

Analytics web page view #477

Open MrLBRD opened 2 years ago

MrLBRD commented 2 years ago

Describe the bug Responsive of analytics web page it's truncated et scroll is hidden.

To Reproduce Steps to reproduce the behavior:

  1. Run 'run.py'
  2. Go to 'http://127.0.0.1:5000'

Expected behavior See the linechart on complete directly or after scroll.

Desktop:

MrLBRD commented 2 years ago

Just delete some style info in charts.html

<body>
    <div class="container has-text-centered">
        <div class="columns">
            <div class="column has-text-right">
                <img style="margin-top: -20px;" width="600px" src="{{url_for('static', filename='banner.png')}}"
                    alt="banner"></div>
            <div class="column is-4 has-text-left" style="margin-top: 35px;">
                <a href="https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/blob/master/LICENSE">
                    <img alt="License"
                        src="https://img.shields.io/github/license/Tkd-Alex/Twitch-Channel-Points-Miner-v2" />
                </a>
                <br>
                <a href="https://www.python.org/downloads/release/python-360/">
                    <img alt="Python3" src="https://img.shields.io/badge/built%20for-Python≥3.6-red.svg?style=flat">
                </a>
                <br>
                <a href="https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pulls">
                    <img alt="PRsWelcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" />
                </a>
                <br>
                <a href="https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/stargazers">
                    <img alt="GitHub Repo stars"
                        src="https://img.shields.io/github/stars/Tkd-Alex/Twitch-Channel-Points-Miner-v2" />
                </a>
                <br>
                <a href="https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues?q=is%3Aissue+is%3Aclosed">
                    <img alt="GitHub closed issues"
                        src="https://img.shields.io/github/issues-closed/Tkd-Alex/Twitch-Channel-Points-Miner-v2">
                </a>
                <br>
                <a href="https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2">
                    <img alt="GitHub last commit"
                        src="https://img.shields.io/github/last-commit/Tkd-Alex/Twitch-Channel-Points-Miner-v2" />
                </a>
                <br>

                <br>
                <a href="https://www.buymeacoffee.com/tkdalex" target="_blank">
                    <img src="https://cdn.buymeacoffee.com/buttons/lato-yellow.png" alt="Buy Me A Coffee" height="5"
                        width="138">
                </a>
            </div>
        </div>

        <div class="columns" style="margin-top: -30px">
            <div class="column is-2 has-text-left">
                <div class="dropdown">
                    <div class="dropdown-trigger">
                        <button class="button" aria-haspopup="true" aria-controls="dropdown-menu">
                            <span id="sorting-by"></span>
                            <span class="icon is-small">
                                <i class="fas fa-angle-down" aria-hidden="true"></i>
                            </span>
                        </button>
                    </div>
                    <div class="dropdown-menu" id="dropdown-menu" role="menu">
                        <div class="dropdown-content">
                            <a href="#" class="dropdown-item" onClick="changeSortBy(this)">
                                Name ascending
                            </a>
                            <a href="#" class="dropdown-item" onClick="changeSortBy(this)">
                                Name descending
                            </a>
                            <a href="#" class="dropdown-item" onClick="changeSortBy(this)">
                                Points ascending
                            </a>
                            <a href="#" class="dropdown-item" onClick="changeSortBy(this)">
                                Points descending
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="column is-2 has-text-left">
                <input class="input" type="date" id="startDate">
            </div>
            <div class="column is-2 has-text-left">
                <input class="input" type="date" id="endDate">
            </div>
            <div class="column has-text-right" style="margin: auto">
                <label class="checkbox checkbox-label">
                    Annotations
                    <input type="checkbox" checked="true" id="annotations">
                </label>
                <label class="checkbox checkbox-label">
                    Dark mode
                    <input type="checkbox" checked="true" id="dark-mode">
                </label>
            </div>
        </div>
        <div class="columns">
            <div class="column is-2">
                <div class="tabs">
                    <ul id="streamers-list"></ul>
                </div>
            </div>
            <div class="column">
                <div class="box" id="chart" style="padding: 0.30rem;"></div>
            </div>
        </div>
    </div>
</body>

and delete this part on style.css :

html,
body {
    overflow-x: hidden;
    overflow-y: hidden;
}