Skip to content

Commit

Permalink
Add styling to table + remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 14, 2024
1 parent 501752a commit 9624bee
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/haddock/clis/cli_analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,6 @@ def main(
f"""Could not execute the analysis for step {step}.
The following error occurred {e}"""
)
# TODO remove stack trace, used for debugging not for normal use
log.warning(e, exc_info=True)
if error:
bad_folder_paths.append(target_path)
else:
Expand Down
28 changes: 28 additions & 0 deletions src/haddock/libs/libplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,34 @@ def _css_styles_for_report():
font-weight: bold;
}
table {
border-collapse: collapse;
}
th {
background-color: #f2f2f2;
padding: 8px;
border: 1px solid #ddd;
text-align: left;
}
th[scope="row"] {
position: sticky;
min-width: 16rem;
left: 0;
z-index: 1
}
td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
tr:nth-child(even) {
background-color: #f2f2f2
}
"""
css_link = "https://esm.sh/@i-vresse/haddock3-analysis-components@~0.4.0-next.0/dist/style.css" # noqa:E501
table_css = f' <link href={css_link} rel="stylesheet" />'
Expand Down

0 comments on commit 9624bee

Please sign in to comment.