Skip to content

Commit a7ae7db

Browse files
committed
Merge pull request #809 from dart-lang/ddc_description_overflow
display descriptions with ellipses
2 parents 0729031 + 99b4fd7 commit a7ae7db

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

lib/resources/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ dd.callable, dd.constant, dd.property {
210210

211211
dd p {
212212
margin-top: 4px;
213+
white-space: nowrap;
214+
overflow-x: hidden;
215+
text-overflow: ellipsis;
213216
}
214217

215218
section.summary h2 {
@@ -503,6 +506,7 @@ span.top-level-variable-type {
503506
padding: 16px;
504507
}
505508

509+
.sidebar h5,
506510
.sidebar ol li {
507511
text-overflow: ellipsis;
508512
overflow: hidden;
@@ -553,7 +557,7 @@ button {
553557
}
554558

555559
#overlay-under-drawer.active {
556-
opacity: 0.7;
560+
opacity: 0.4;
557561
height: 100%;
558562
z-index: 1999;
559563
position: fixed;

lib/templates/index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{{>head}}
22

3+
<div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
4+
<h5>{{self.name}}</h5>
5+
6+
<ol>
7+
<li class="section-title"><a href="{{package.href}}#libraries">Libraries</a></li>
8+
{{#package.libraries}}
9+
<li><a href="{{href}}">{{name}}</a></li>
10+
{{/package.libraries}}
11+
</ol>
12+
</div>
13+
314
<div class="col-xs-12 col-sm-9 col-md-8 main-content">
415

516
{{#package}}
@@ -25,15 +36,6 @@ <h2>Libraries</h2>
2536

2637
<div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
2738

28-
<h5>{{self.name}}</h5>
29-
30-
<ol>
31-
<li class="section-title"><a href="{{package.href}}#libraries">Libraries</a></li>
32-
{{#package.libraries}}
33-
<li><a href="{{href}}">{{name}}</a></li>
34-
{{/package.libraries}}
35-
</ol>
36-
3739
</div><!--/.sidebar-offcanvas-right-->
3840

3941
{{>footer}}

0 commit comments

Comments
 (0)