resize window
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user