fix tweet archive error banner placement

This commit is contained in:
codl 2017-08-07 15:47:00 +02:00
parent f7b36ad257
commit deda43fd8a
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
2 changed files with 8 additions and 3 deletions

View File

@ -103,6 +103,10 @@ body > section > .banner {
background: #eec; background: #eec;
} }
form {
margin: 1em auto;
}
.banner form { .banner form {
display: inline; display: inline;
} }

View File

@ -68,14 +68,15 @@
<a href="https://twitter.com/settings/account">Twitter's settings page</a>, <a href="https://twitter.com/settings/account">Twitter's settings page</a>,
and upload it here. and upload it here.
</p> </p>
<form action='{{url_for('upload_tweet_archive')}}' method='post' enctype='multipart/form-data'>
<input type="file" name='file'><input type="submit" value="Upload">
</form>
{% if tweet_archive_failed %} {% if tweet_archive_failed %}
<div class="banner error">The file you uploaded is not a valid tweet archive. No posts have been imported.</div> <div class="banner error">The file you uploaded is not a valid tweet archive. No posts have been imported.</div>
{% endif %} {% endif %}
<form action='{{url_for('upload_tweet_archive')}}' method='post' enctype='multipart/form-data'>
<input type="file" name='file'><input type="submit" value="Upload">
</form>
{% if g.viewer.account.twitter_archives %} {% if g.viewer.account.twitter_archives %}
<h3 id="recent_archives">Recent archives</h3> <h3 id="recent_archives">Recent archives</h3>
<ul> <ul>