Skip to content

Commit

Permalink
Fix display of platforms list if there are too many
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 11, 2023
1 parent 89e5ed8 commit afe02eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/rustdoc/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</a>

{# Build the dropdown list showing available targets #}
<ul class="pure-menu-children">
<ul class="pure-menu-children" id="platforms">
{%- for target in metadata.doc_targets -%}
{#
The crate-detail page is the only page where we want to allow google to follow
Expand Down
10 changes: 10 additions & 0 deletions templates/style/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ div.nav-container {
animation: rotating_text 2s linear infinite;
}
}

#platforms {
max-height: 75vh;
overflow-y: auto;

li a {
overflow-x: hidden;
text-overflow: ellipsis;
}
}
}

#nav-search {
Expand Down

0 comments on commit afe02eb

Please sign in to comment.