mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-18 23:57:55 -06:00
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:
1 parent
c916503958
commit
a4d5c6149b
7 files changed
+30
-15
No files matched your search
@@ -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'<span class="rb-stat-value">{value}</span>',
|
||||
f'<span class="rb-stat-label">{label}</span>',
|
||||
# One line, a space between: the page text read "168/168Coverage".
|
||||
f'<span class="rb-stat-value">{value}</span> <span class="rb-stat-label">{label}</span>',
|
||||
"</div>",
|
||||
"",
|
||||
]
|
||||
@@ -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"<code>{_text_html(path)}</code>" 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"<code>{_text_html(path)}</code>"] if path else []),
|
||||
_status_chip(f)])
|
||||
copy = _copy_hash(shown, hashes[shown]) if shown else ""
|
||||
return (f'<details class="rb-file"><summary>{summary}</summary>'
|
||||
f'{"<br>".join(facts)}</details>{copy}')
|
||||
|
||||
Reference in new issue
Block a user