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