Remove image styling
This commit is contained in:
+2
-3
@@ -114,7 +114,7 @@ def build_screenshots_html(app):
|
||||
screenshots = [s for s in screenshots if not s.get("hardware")]
|
||||
|
||||
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):
|
||||
url = screenshot.get("url", "")
|
||||
width = screenshot.get("width", "auto")
|
||||
@@ -126,9 +126,8 @@ def build_screenshots_html(app):
|
||||
label += f" ({hardware})"
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user