Remove image styling

This commit is contained in:
2026-09-17 09:40:24 +02:00
parent 3d13d6a164
commit 0284aac225
+2 -3
View File
@@ -114,7 +114,7 @@ def build_screenshots_html(app):
screenshots = [s for s in screenshots if not s.get("hardware")] screenshots = [s for s in screenshots if not s.get("hardware")]
if screenshots: if screenshots:
screenshots_html = '<div style="display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto;">' screenshots_html = ''
for idx, screenshot in enumerate(screenshots, 1): for idx, screenshot in enumerate(screenshots, 1):
url = screenshot.get("url", "") url = screenshot.get("url", "")
width = screenshot.get("width", "auto") width = screenshot.get("width", "auto")
@@ -126,9 +126,8 @@ def build_screenshots_html(app):
label += f" ({hardware})" label += f" ({hardware})"
if url: if url:
screenshots_html += f'<img src="{url}" alt="{label}" title="{label}" width="{width}" height="{height}" style="max-height: 300px; flex-shrink: 0; margin: 20px;" />' screenshots_html += f'<img src="{url}" alt="{label}" title="{label}" width="{width}" height="{height}" />'
screenshots_html += '</div>'
return screenshots_html return screenshots_html