Skip to content

Commit

Permalink
Fixed css
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Apr 9, 2024
1 parent 7e23785 commit 84cafac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/liblet/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def animate_derivation(d, height='300px'):


def __bordered_table__(content): # noqa: N807
return HTML(f'<style>td, th {{border: 1pt solid lightgray !important;}} * {{font-family: "{FONT_NAME}";}}</style><table>' + content + '</table>')
return HTML(f'<style>td, th {{border: 1pt solid lightgray !important;}} table * {{font-family: "{FONT_NAME}";}}</style><table>' + content + '</table>')


def resized_svg_repr(obj, width=800, height=600):
Expand Down
2 changes: 1 addition & 1 deletion src/liblet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def restrict_to(self, rows=None, cols=None):
def _repr_html_(self):
def _table(content):
return (
f'<style>td, th {{border: 1pt solid lightgray !important; text-align: left !important;}} * {{font-family: "{FONT_NAME}";}}</style><table>'
f'<style>td, th {{border: 1pt solid lightgray !important; text-align: left !important;}} table * {{font-family: "{FONT_NAME}";}}</style><table>'
+ content
+ '</table>'
)
Expand Down

0 comments on commit 84cafac

Please sign in to comment.