Skip to content

Commit

Permalink
update position of daff-article>
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Dec 31, 2024
1 parent e45dd8b commit 40e77b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
</button>
<div class="daffio-doc-viewer__grid">
<div class="daffio-doc-viewer__content">
@if (doc.breadcrumbs?.length > 0) {
<nav aria-label="Breadcrumb">
<ol daff-breadcrumb>
@for (breadcrumb of doc.breadcrumbs; track $index) {
<li daffBreadcrumbItem [active]="$last">
@if ($last) {
{{breadcrumb.label}}
} @else {
<a [routerLink]="breadcrumb.path">{{breadcrumb.label}}</a>
}
</li>
}
</ol>
</nav>
}

<ng-content>
@if (isApiPackage) {
<daffio-api-package [doc]="doc"></daffio-api-package>
} @else {
<daff-article
[innerHtml]="getInnerHtml(doc)">
</daff-article>
}
</ng-content>
<daff-article>
@if (doc.breadcrumbs?.length > 0) {
<nav aria-label="Breadcrumb">
<ol daff-breadcrumb>
@for (breadcrumb of doc.breadcrumbs; track $index) {
<li daffBreadcrumbItem [active]="$last">
@if ($last) {
{{breadcrumb.label}}
} @else {
<a [routerLink]="breadcrumb.path">{{breadcrumb.label}}</a>
}
</li>
}
</ol>
</nav>
}
<ng-content>
@if (isApiPackage) {
<daffio-api-package [doc]="doc"></daffio-api-package>
} @else {
<div [innerHtml]="getInnerHtml(doc)"></div>
}
</ng-content>
</daff-article>
</div>
@if (isGuideDoc) {
<daffio-docs-table-of-contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
</daff-tab-label>
<daff-tab-panel>
@for (apiDoc of doc.api; track $index) {
<daff-article
[innerHtml]="getInnerHtml(apiDoc)">
</daff-article>
<div [innerHtml]="getInnerHtml(apiDoc)"></div>
}
</daff-tab-panel>
</daff-tab>
Expand Down

0 comments on commit 40e77b0

Please sign in to comment.