Skip to content

Commit 599193e

Browse files
committed
Fixed overly long tooltips
1 parent e15518c commit 599193e

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

material/templates/assets/stylesheets/main.458f862d.min.css renamed to material/templates/assets/stylesheets/main.f0945174.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.458f862d.min.css.map renamed to material/templates/assets/stylesheets/main.f0945174.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.458f862d.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f0945174.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_tooltip2.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@
182182
)
183183
);
184184
width: fit-content;
185+
// @todo refactor - this is currently a hack to fix overly long tooltips,
186+
// but should be refactored in the future to be more flexible
187+
max-width:
188+
min(
189+
calc(100vw - 2 * #{px2rem(16px)}),
190+
400px
191+
);
185192
padding: px2rem(4px) px2rem(8px);
186193
font-size: px2rem(10px);
187194
font-weight: 700;

0 commit comments

Comments
 (0)