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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-10 14:12:06 +01:00
1 parent c916503958
commit a4d5c6149b
7 files changed
+30 -15

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ class ARowPerFile(unittest.TestCase):
{"name": "bios_a.bin", "md5": md5, "sha1": sha1, "crc32": "0badf00d",
"destination": "bios/bios_a.bin"})
# The summary is the row: the name, its folder, the status.
self.assertIn('<details class="rb-file"><summary>bios&#95;a.bin<code>bios/</code>'
self.assertIn('<details class="rb-file"><summary>bios&#95;a.bin <code>bios/</code> '
'<span class="rb-badge rb-badge-success">OK</span></summary>', row)
# The hash the platform checks, short, on one button beside the
# summary (a summary is a control: no button inside it).
@@ -113,7 +113,7 @@ class ARowPerFile(unittest.TestCase):
def test_a_file_at_the_root_prints_no_path(self):
for destination in ("", "x.bin"):
row = self._row({"name": "x.bin", "status": "ok"}, {"destination": destination})
self.assertIn("<summary>x.bin<span", row)
self.assertIn("<summary>x.bin <span", row)
def test_a_list_drops_the_path_column_when_no_row_has_one(self):
files = [{"name": "a.bin", "status": "ok"}, {"name": "b.bin", "status": "ok"}]