Skip to content

Commit

Permalink
Fixed title rendering in version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 16, 2024
1 parent f494840 commit 407335d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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 @@ -249,7 +249,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.ebd0bdb7.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.081f42fc.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/assets/javascripts/templates/version/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function renderVersion(version: Version): HTMLElement {
<li class="md-version__item">
<a href={`${url}`} class="md-version__link">
{version.title}
{config.version?.alias && version.aliases.length && (
{config.version?.alias && version.aliases.length > 0 && (
<span class="md-version__alias">
{version.aliases[0]}
</span>
Expand Down Expand Up @@ -98,7 +98,7 @@ export function renderVersionSelector(
aria-label={translation("select.version")}
>
{active.title}
{config.version?.alias && active.aliases.length && (
{config.version?.alias && active.aliases.length > 0 && (
<span class="md-version__alias">
{active.aliases[0]}
</span>
Expand Down

0 comments on commit 407335d

Please sign in to comment.