Skip to content

Commit ebdb66d

Browse files
authoredFeb 8, 2021
fix(component-viewer): Loading document... getting wrapped (#912)
- when there is plenty of room, the message is being wrapped due to the width of the new parent span that was added in #717
1 parent d2db6d7 commit ebdb66d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎material.angular.io/src/app/pages/component-viewer/component-api.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
</span>
55

66
<!--
7-
The span container is necessary for the layout to display properly. When
7+
This container is necessary for the layout to display properly. When
88
a component has multiple API docs, they need to be joined together in the
99
same container so that they display one after another.
1010
-->
11-
<span>
11+
<div class="docs-component-api">
1212
<doc-viewer [documentUrl]="getApiDocumentUrl(docItem!)"
13-
class="docs-component-view-text-content docs-component-api"
13+
class="docs-component-view-text-content"
1414
(contentRendered)="updateTableOfContents(docItem!.name, $event)">
1515
</doc-viewer>
1616

1717
<doc-viewer *ngFor="let additionalApiDoc of docItem!.additionalApiDocs; let index = index"
1818
documentUrl="/docs-content/api-docs/{{additionalApiDoc.path}}"
19-
class="docs-component-view-text-content docs-component-api"
19+
class="docs-component-view-text-content"
2020
(contentRendered)="updateTableOfContents(additionalApiDoc.name, $event, index + 1)">
2121
</doc-viewer>
22-
</span>
22+
</div>
2323

2424
<table-of-contents #toc
2525
*ngIf="showToc | async"

‎material.angular.io/src/app/pages/component-viewer/component-viewer.scss

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ app-component-viewer {
5959
.docs-component-api,
6060
.docs-component-overview {
6161
width: 80%;
62-
display: inline-flex;
6362

6463
@media (max-width: $small-breakpoint-width) {
6564
width: 100%;

0 commit comments

Comments
 (0)
Please sign in to comment.