Skip to content

Commit

Permalink
fix(component-viewer): Loading document... getting wrapped (angular#912)
Browse files Browse the repository at this point in the history
- when there is plenty of room, the message is being wrapped due to the width
  of the new parent span that was added in angular#717
  • Loading branch information
Splaktar authored Feb 8, 2021
1 parent d2db6d7 commit ebdb66d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
</span>

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

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

<table-of-contents #toc
*ngIf="showToc | async"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ app-component-viewer {
.docs-component-api,
.docs-component-overview {
width: 80%;
display: inline-flex;

@media (max-width: $small-breakpoint-width) {
width: 100%;
Expand Down

0 comments on commit ebdb66d

Please sign in to comment.