Browse Source
Merge pull request #23010 from abpframework/fix/setting-management-tab-padding
Angular - Fixing the alignment for the setting tabs
pull/23026/head
Yağmur Çelik
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
10 additions and
6 deletions
-
npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.html
-
npm/ng-packs/packages/setting-management/src/lib/components/setting-management.component.ts
|
|
|
@ -24,9 +24,13 @@ |
|
|
|
</div> |
|
|
|
<div class="col-12 col-md-9"> |
|
|
|
@if (settings.length) { |
|
|
|
<div class="tab-content"> |
|
|
|
<div class="tab-pane fade show active" [id]="selected.name + '-tab'" role="tabpanel"> |
|
|
|
<ng-container *ngComponentOutlet="selected.component"></ng-container> |
|
|
|
<div class="tab-content pt-0"> |
|
|
|
<div |
|
|
|
class="tab-pane fade show active" |
|
|
|
[id]="selected.name + '-tab'" |
|
|
|
role="tabpanel" |
|
|
|
> |
|
|
|
<ng-container *ngComponentOutlet="selected.component" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import { ABP } from '@abp/ng.core'; |
|
|
|
import { SettingTabsService } from '@abp/ng.setting-management/config'; |
|
|
|
import { Component, OnDestroy, OnInit, TrackByFunction } from '@angular/core'; |
|
|
|
import { Component, inject, OnDestroy, OnInit, TrackByFunction } from '@angular/core'; |
|
|
|
import { Subscription } from 'rxjs'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
@ -9,15 +9,15 @@ import { Subscription } from 'rxjs'; |
|
|
|
templateUrl: './setting-management.component.html', |
|
|
|
}) |
|
|
|
export class SettingManagementComponent implements OnDestroy, OnInit { |
|
|
|
private settingTabsService = inject(SettingTabsService); |
|
|
|
private subscription = new Subscription(); |
|
|
|
|
|
|
|
settings: ABP.Tab[] = []; |
|
|
|
|
|
|
|
selected!: ABP.Tab; |
|
|
|
|
|
|
|
trackByFn: TrackByFunction<ABP.Tab> = (_, item) => item.name; |
|
|
|
|
|
|
|
constructor(private settingTabsService: SettingTabsService) {} |
|
|
|
|
|
|
|
ngOnDestroy() { |
|
|
|
this.subscription.unsubscribe(); |
|
|
|
} |
|
|
|
|