diff --git a/assets/styles.css b/assets/styles.css index e57e8c2..b55f9b1 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -229,5 +229,6 @@ a.btn:hover { } .btn-content { - margin: 0 .5em 0 .1em; + margin: 0 .5em; + line-height: 2em; } diff --git a/routes.py b/routes.py index da3dc1f..2d1e405 100644 --- a/routes.py +++ b/routes.py @@ -60,7 +60,7 @@ def index(): settings_error = 'settings_error' in request.args ) else: - instances = MastodonInstance.query.filter(MastodonInstance.popularity > 1).order_by(db.desc(MastodonInstance.popularity)).limit(3) + instances = MastodonInstance.query.filter(MastodonInstance.popularity > 5).order_by(db.desc(MastodonInstance.popularity)).limit(5) return render_template('index.html', mastodon_instances = instances, twitter_login_error = 'twitter_login_error' in request.args) @@ -219,7 +219,7 @@ def api_viewer_timers(): @app.route('/login/mastodon', methods=('GET', 'POST')) def mastodon_login_step1(instance=None): - instances = MastodonInstance.query.filter(MastodonInstance.popularity > 1).order_by(db.desc(MastodonInstance.popularity)).limit(16) + instances = MastodonInstance.query.filter(MastodonInstance.popularity > 5).order_by(db.desc(MastodonInstance.popularity)).limit(16) instance_url = request.args.get('instance_url', None) or request.form.get('instance_url', None) diff --git a/templates/index.html b/templates/index.html index a987208..76f3cfb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,28 +30,30 @@

- - Log in with Twitter + + Log in with Twitter

-{% for instance in mastodon_instances %} -

+{% for instance in mastodon_instances %} + + +{% if loop.first %} - - Log in with {{instance.instance}} + + Log in with +{% else %} + +{% endif %} + {{instance.instance}} -

{% endfor %} -

- - - - Log in with another Mastodon instance + + Another Mastodon instance