css img size

This commit is contained in:
zeroth 2019-04-04 14:43:39 +01:00
parent 0495e8292a
commit c9c2a4d5cf
2 changed files with 7 additions and 4 deletions

View File

@ -53,7 +53,6 @@ for path, subdirs, files in os.walk(path):
# print(listofdicts[0]["name"]) #test # print(listofdicts[0]["name"]) #test
dict = {} #dict for the form entries dict = {} #dict for the form entries
@app.route("/") @app.route("/")
@ -80,7 +79,7 @@ def description():
# assigning html tag on the basis of extension, to be finished when all the files have been sent # assigning html tag on the basis of extension, to be finished when all the files have been sent
if thefile.lower().endswith(('.png', '.jpg', '.jpeg')): if thefile.lower().endswith(('.png', '.jpg', '.jpeg')):
thefile = Markup('<img src="'+thefile+'" />') thefile = Markup('<img src="'+thefile+'" /> <br />')
#if sound #if sound
elif thefile.lower().endswith(('.mp3')): elif thefile.lower().endswith(('.mp3')):
@ -95,7 +94,7 @@ def description():
Your browser does not support the video tag. Your browser does not support the video tag.
</video> ''') </video> ''')
# return render_template('description.html', form=form, file=thefile, listingdirectories=listingdirectories, listingfiles=listingfiles)
return render_template('description.html', file=thefile) return render_template('description.html', file=thefile)

View File

@ -2,3 +2,7 @@ body{
background: lavender; background: lavender;
color:blue; color:blue;
} }
img{
max-width: 500px;
}