resize window

This commit is contained in:
2024-02-21 20:10:55 +01:00
parent 31f23af6e7
commit 38f6a0e329
3 changed files with 1 additions and 12 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ body {
position: fixed; position: fixed;
z-index:99; z-index:99;
min-height: 520px; min-height: 520px;
width:max(560px, 50vw); width:560px;
resize: both;
overflow-y:scroll; overflow-y:scroll;
overflow-x:visible; overflow-x:visible;
display: flex; display: flex;
-1
View File
@@ -63,7 +63,6 @@ def get_and_dither_image(url, instance, attribute):
"""Expects a url, and a Django model cls with an ImageField attribute""" """Expects a url, and a Django model cls with an ImageField attribute"""
print(f"Parsing {url} for {instance} with attribute {attribute}") print(f"Parsing {url} for {instance} with attribute {attribute}")
r = get(url) r = get(url)
print(r.content)
i = Image.open(BytesIO(r.content)) i = Image.open(BytesIO(r.content))
i = i.resize(size=(256, 256)).convert("P").quantize(colors=32) i = i.resize(size=(256, 256)).convert("P").quantize(colors=32)
buffer = BytesIO() buffer = BytesIO()
-9
View File
@@ -4,15 +4,6 @@
{% include "head.html" %} {% include "head.html" %}
</head> </head>
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'> <body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
<svg class="offscreen" width="0" height="0" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<defs>
<filter id="crispify">
<feComponentTransfer>
<feFuncA type="discrete" tableValues="0 1"/>
</feComponentTransfer>
</filter>
</defs>
</svg>
<script>setWallpaper()</script> <script>setWallpaper()</script>
<div class="window" id="main-window"> <div class="window" id="main-window">
<div class="title-bar main-title-bar"> <div class="title-bar main-title-bar">