From 38f6a0e3297f11c398737edb3acb59d23d5dedf7 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Wed, 21 Feb 2024 20:10:55 +0100 Subject: [PATCH] resize window --- playlist/static/style.css | 3 +-- playlist/tasks.py | 1 - playlist/templates/Base.html | 9 --------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/playlist/static/style.css b/playlist/static/style.css index a1ee816..a4e4681 100644 --- a/playlist/static/style.css +++ b/playlist/static/style.css @@ -7,8 +7,7 @@ body { position: fixed; z-index:99; min-height: 520px; - width:max(560px, 50vw); - resize: both; + width:560px; overflow-y:scroll; overflow-x:visible; display: flex; diff --git a/playlist/tasks.py b/playlist/tasks.py index 78bc3df..33a9a19 100644 --- a/playlist/tasks.py +++ b/playlist/tasks.py @@ -63,7 +63,6 @@ def get_and_dither_image(url, instance, attribute): """Expects a url, and a Django model cls with an ImageField attribute""" print(f"Parsing {url} for {instance} with attribute {attribute}") r = get(url) - print(r.content) i = Image.open(BytesIO(r.content)) i = i.resize(size=(256, 256)).convert("P").quantize(colors=32) buffer = BytesIO() diff --git a/playlist/templates/Base.html b/playlist/templates/Base.html index ab775d5..805f4d7 100644 --- a/playlist/templates/Base.html +++ b/playlist/templates/Base.html @@ -4,15 +4,6 @@ {% include "head.html" %} -