From a4d5c6149b4423770235530c9ce063ba5cf58f96 Mon Sep 17 00:00:00 2001
From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com>
Date: Tue, 10 Nov 2026 14:12:06 +0100
Subject: [PATCH] fix: space tile, stat and file row labels
Tiles read "BizHawkWindows, Linux", stats "168/168Coverage" and a
file row "SVI603.ROMbios/Machines/...OK": the stylesheet lays them
out as boxes, the markup had no space between them. A setup without a
logo draws its initials from the stylesheet, so its name is read once.
---
scripts/generate_site.py | 10 ++++++----
scripts/sitemarkup.py | 13 +++++++------
tests/test_site_components.py | 2 +-
tests/test_site_entry.py | 2 +-
tests/test_site_exports.py | 2 +-
tests/test_site_platform_density.py | 4 ++--
website/src/styles/retrobios.css | 12 ++++++++++++
7 files changed, 30 insertions(+), 15 deletions(-)
diff --git a/scripts/generate_site.py b/scripts/generate_site.py
index d6bf5b780..660c58ac5 100644
--- a/scripts/generate_site.py
+++ b/scripts/generate_site.py
@@ -417,8 +417,8 @@ def _date_line() -> str:
def _stat(value: str, label: str) -> list[str]:
return [
markup.block_open("div", 'class="rb-stat"'),
- f'{value}',
- f'{label}',
+ # One line, a space between: the page text read "168/168Coverage".
+ f'{value} {label}',
"",
"",
]
@@ -3803,8 +3803,10 @@ def _platform_file_row(f: dict, cfg_entry: dict, hash_type: str = "",
facts.append(_inline_html(_category_evidence_md(f["category_evidence"], launched)))
path = _row_path(fname, cfg_entry)
- summary = (_text_html(fname) + (f"{_text_html(path)}" if path else "")
- + _status_chip(f))
+ # Spaces between name, path and status: the summary lays them out as
+ # columns, and the page text read "SVI603.ROMbios/Machines/...OK".
+ summary = " ".join([_text_html(fname), *([f"{_text_html(path)}"] if path else []),
+ _status_chip(f)])
copy = _copy_hash(shown, hashes[shown]) if shown else ""
return (f'{summary}
'
f'{"
".join(facts)}')
- # The same square as a logo, drawn on white like the logos are.
- return ('')
+ # The same square as a logo, drawn on white like the logos are. The
+ # letters are the stylesheet's (::before), not text of the page: the
+ # tile's name follows, and a copy or a text dump read "MMMyMinUI".
+ return (f'')
# Tiles in the first row of a grid at its widest, two columns of 15rem in
@@ -246,8 +247,8 @@ def platform_tiles(tiles: list[tuple[str, str, str, str]], eager: int = 0) -> li
links = "".join(
f''
f"{_tile_mark(name, logo, lazy=index >= eager)}"
- f'{html.escape(name)}'
- f'{inline_html(runs_on)}'
+ f'{html.escape(name)} '
+ f'{inline_html(runs_on)} '
for index, (name, target, logo, runs_on) in enumerate(tiles)
)
return [f'
IPL.bindolphin-emu/Sys/GC/{region}/"
+ self.assertIn(f"dolphin-emu/Sys/GC/{region}/ "
'OKbios/'
+ self.assertIn('bios/ '
'OK