Skip to content

Commit afe02eb

Browse files
Fix display of platforms list if there are too many
1 parent 89e5ed8 commit afe02eb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

templates/rustdoc/topbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
</a>
209209

210210
{# Build the dropdown list showing available targets #}
211-
<ul class="pure-menu-children">
211+
<ul class="pure-menu-children" id="platforms">
212212
{%- for target in metadata.doc_targets -%}
213213
{#
214214
The crate-detail page is the only page where we want to allow google to follow

templates/style/_navbar.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,16 @@ div.nav-container {
341341
animation: rotating_text 2s linear infinite;
342342
}
343343
}
344+
345+
#platforms {
346+
max-height: 75vh;
347+
overflow-y: auto;
348+
349+
li a {
350+
overflow-x: hidden;
351+
text-overflow: ellipsis;
352+
}
353+
}
344354
}
345355

346356
#nav-search {

0 commit comments

Comments
 (0)