Skip to content

Commit

Permalink
Fixed overly long tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 14, 2024
1 parent e15518c commit 599193e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.458f862d.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f0945174.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@
)
);
width: fit-content;
// @todo refactor - this is currently a hack to fix overly long tooltips,
// but should be refactored in the future to be more flexible
max-width:
min(
calc(100vw - 2 * #{px2rem(16px)}),
400px
);
padding: px2rem(4px) px2rem(8px);
font-size: px2rem(10px);
font-weight: 700;
Expand Down

0 comments on commit 599193e

Please sign in to comment.