Skip to content

Commit

Permalink
UI: Fix file view responsiveness on mobile
Browse files Browse the repository at this point in the history
The contents of the file would extend beyond the border of the card so
the entire page would scroll horizontally.

Add the table-responsive class to keep the table within the boundary of
the UI.
  • Loading branch information
dmsimard committed Jul 29, 2023
1 parent 8b50196 commit 6663747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ara/ui/templatetags/pygments_highlights.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@register.filter(name="format_yaml")
def format_yaml(code):
formatter = HtmlFormatter(
linenos="table", anchorlinenos=True, lineanchors="line", linespans="line", cssclass="codehilite"
linenos="table", anchorlinenos=True, lineanchors="line", linespans="line", cssclass="table-responsive codehilite"
)

if not code:
Expand Down

0 comments on commit 6663747

Please sign in to comment.