Skip to content
Snippets Groups Projects
Commit 8dae40f2 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

Improve presentation of the forge index

Logos in the table listing the forges were taking too much space,
resulting in unfortunate line breaks in other columns. Let’s reduce
their width to a minimum instead.

Also remove the secondary sidebar to get some extra space.
parent 73142dc0
No related branches found
No related tags found
No related merge requests found
......@@ -19,11 +19,35 @@ table.swh-logos-table img {
margin-bottom: 5px;
}
table.swh-logos-table tr td:nth-child(1) {
width: min-content;
}
table.swh-logos-table tr td:nth-child(1) p {
margin-bottom: 0;
}
table.swh-logos-table ul {
text-align: left;
margin-bottom: auto;
}
table.swh-logos-table .py {
font-family: inherit;
font-weight: inherit;
font-size: inherit;
white-space: inherit;
background-color: inherit;
border: inherit;
border-radius: inherit;
padding: inherit;
}
table.swh-logos-table .py .pre {
white-space: inherit;
}
.landing-page hr {
margin-top: 5em;
margin-bottom: 5em;
......
:html_theme.sidebar_secondary.remove:
.. _user-software-origins:
Software Origins
......
......@@ -35,7 +35,7 @@ def write_table(data, file) -> None:
)
table = []
for (forge_id, forge) in sorted(data["forges"].items()):
logo_cell = f"|{forge_id}_logo|\n\n:ref:`user-software-origins-{forge_id}`"
logo_cell = f"|{forge_id}_logo|\n\n:ref:`{forge['name']} <user-software-origins-{forge_id}>`"
has_loader = forge["loader"]["status"] != "N/A"
has_lister = forge["lister"]["status"] != "N/A"
......@@ -212,7 +212,6 @@ def write_logos(data, file) -> None:
for (forge_id, forge) in sorted(data["forges"].items()):
file.write(
f".. |{forge_id}_logo| image:: ../logos/{forge_id}.png\n"
f" :width: 50%\n"
f" :target: {forge_id}.html\n"
f" :alt: {forge['name']}\n"
f"\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment