Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TabsWithMore #1615

Merged
merged 1 commit into from
Apr 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
}

.t-overflown {
position: relative;
display: flex;
margin: 0;
width: 0;
Expand All @@ -36,7 +35,6 @@
}

.t-more_wrapper {
position: relative;
height: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@
>
<ng-container *ngFor="let item of items; let index = index">
<ng-container
*ngIf="index <= lastVisibleIndex || index === activeItemIndex"
*ngIf="index <= lastVisibleIndex; else hidden"
[ngTemplateOutlet]="item"
></ng-container>
<ng-template #hidden>
<div [class.t-overflown]="index !== activeItemIndex">
<ng-container *ngTemplateOutlet="item"></ng-container>
</div>
</ng-template>
</ng-container>
<div class="t-overflown">
<ng-container *ngFor="let item of items; let index = index">
<ng-container
*ngIf="index > lastVisibleIndex && index !== activeItemIndex"
[ngTemplateOutlet]="item"
></ng-container>
</ng-container>
</div>
</tui-tabs>
<tui-hosted-dropdown
class="t-more_wrapper"
Expand Down