mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
Fix button wrapping behavior on mobile (#921)
* fixed button wrapping behavior previous+next buttons with long text now stack properly on smaller screens * truncates function/component names of prev/next buttons Function/component names are truncated, while regular titles are wrapped * removed unused styles * fixed using idx (safe getter) for previous/next titles passed through prettier and all tests pass
This commit is contained in:
parent
7987e66bed
commit
e613725a25
2 changed files with 53 additions and 12 deletions
|
@ -1545,8 +1545,32 @@ input::placeholder {
|
|||
}
|
||||
|
||||
@media only screen and (max-width: 735px) {
|
||||
.docs-prevnext {
|
||||
height: 40px;
|
||||
.docs-next {
|
||||
clear: both;
|
||||
float: left;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.docs-prev {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.arrow-next {
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.arrow-prev {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.function-name-prevnext {
|
||||
width: 200px;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
/* End of Docs Navigation */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue