Skip to content

Commit ef0468a

Browse files
committed
Fix GitbookIO#310: improve display of long title in header
1 parent f03153e commit ef0468a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

theme/assets/style.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.

theme/stylesheets/website/header.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,16 @@
4444
padding-right: 200px;
4545
.transition(margin-left 0.5s ease);
4646

47+
overflow: hidden;
48+
text-overflow: ellipsis;
49+
white-space: nowrap;
50+
4751
a, a:hover {
4852
color: inherit;
4953
text-decoration: none;
5054
}
5155

52-
@media (max-width: 800px) {
56+
@media (max-width: 1000px) {
5357
display: none;
5458
}
5559

0 commit comments

Comments
 (0)