From 27f5d4d022c9e1194f6ef82d49642c7966969fa5 Mon Sep 17 00:00:00 2001 From: tristanlatr <19967168+tristanlatr@users.noreply.github.com> Date: Fri, 10 May 2024 11:27:37 -0400 Subject: [PATCH] PR #781 made some cosmetic changes, but this is a better fix. (#793) --- README.rst | 2 +- pydoctor/themes/base/apidocs.css | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index ae5a90aa1..8be79a0c1 100644 --- a/README.rst +++ b/README.rst @@ -91,7 +91,7 @@ This is the last major release to support Python 3.7. * Make sure the line number coming from ast analysis has precedence over the line of a ``ivar`` field. * Ensure that all docutils generated css classes have the ``rst-`` prefix, the base theme have been updated accordingly. * Fix compatibility issue with docutils 0.21.x -* Transform annotations to use python 3.10 style: ``typing.Union[x ,y]`` -> ``x | y``; ``typing.Optional[x]`` -> ``x | None``; ``typing.List[x]`` -> ``list[x]``. +* Transform annotations to use python 3.10 style: ``typing.Union[x, y]`` -> ``x | y``; ``typing.Optional[x]`` -> ``x | None``; ``typing.List[x]`` -> ``list[x]``. * Do not output useless parenthesis when colourizing subscripts. pydoctor 23.9.1 diff --git a/pydoctor/themes/base/apidocs.css b/pydoctor/themes/base/apidocs.css index 70a21d26c..537c3ba5c 100644 --- a/pydoctor/themes/base/apidocs.css +++ b/pydoctor/themes/base/apidocs.css @@ -230,7 +230,7 @@ ul ul ul ul ul ul ul { .fieldTable tr:not(.fieldStart) td:first-child, .valueTable tr:not(.fieldStart) td:first-child{ - padding: 3px 4px 3px 10px; + padding: 3px 4px 3px 15px; } .fieldTable tr td { @@ -246,14 +246,15 @@ ul ul ul ul ul ul ul { /* parameters names in parameters table */ .fieldTable tr td.fieldArgContainer > .fieldArg { - display: inline; + float: left; + margin-left: -5px; } /* parameters types (in parameters table) */ .fieldTable tr td.fieldArgContainer > code { /* we don't want word break for the types because we already add tags inside the type HTML, and that should suffice. */ word-break: normal; - display: inline-block; + display: inline; flex-wrap: wrap; }