Changed style a bit.

This commit is contained in:
retoor 2024-11-26 07:25:27 +01:00
parent c6386eb794
commit 30d7ed5118

View File

@ -32,10 +32,10 @@ UPLOAD_PAGE = """
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Upload</title>
<title>RUpload 1.33.7</title>
<style>
body {
font-family: Arial, sans-serif;
font-family: "Courier New", Courier, monospace;
background-color: #f4f4f9;
display: flex;
justify-content: center;
@ -44,6 +44,10 @@ UPLOAD_PAGE = """
margin: 0;
}
a {
text-decoration: none;
}
.container {
background-color: #fff;
border-radius: 8px;
@ -184,7 +188,7 @@ def create_images_html(url, image_paths):
images_html = ""
for image_path in image_paths:
path = url.rstrip("/") + "/" + image_path.name
images_html += f'<img class="thumbnail" src="{path}" alt="{image_path.name}">'
images_html += f'<a href="{path}"><img class="thumbnail" src="{path}" alt="{image_path.name}"></a>'
return images_html