-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade and rework scroll area (#529)
* feat: upgrade and rework scroll area * feat: add migration * feat: add migration * feat: add migration
- Loading branch information
1 parent
9831dfb
commit 1278091
Showing
23 changed files
with
418 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
apps/app/src/app/shared/layout/side-nav/side-nav.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { Component } from '@angular/core'; | ||
import { HlmScrollAreaComponent } from '@spartan-ng/ui-scrollarea-helm'; | ||
import { HlmScrollAreaDirective } from '@spartan-ng/ui-scrollarea-helm'; | ||
import { NgScrollbarModule } from 'ngx-scrollbar'; | ||
import { SideNavContentComponent } from './side-nav-content.component'; | ||
|
||
@Component({ | ||
selector: 'spartan-side-nav', | ||
standalone: true, | ||
imports: [HlmScrollAreaComponent, SideNavContentComponent], | ||
imports: [HlmScrollAreaDirective, NgScrollbarModule, SideNavContentComponent], | ||
host: { | ||
class: 'fixed text-sm top-12 px-2 pt-6 pb-12 flex z-30 -ml-2 hidden w-full shrink-0 md:sticky md:block', | ||
}, | ||
template: ` | ||
<hlm-scroll-area visibility="hover" class="h-[calc(100vh-3.5rem)]"> | ||
<ng-scrollbar hlm visibility="hover" class="h-[calc(100vh-3.5rem)]"> | ||
<spartan-side-nav-content /> | ||
</hlm-scroll-area> | ||
</ng-scrollbar> | ||
`, | ||
}) | ||
export class SideNavComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { convertNxGenerator } from '@nx/devkit'; | ||
import { migrateScrollAreaGenerator } from './generator'; | ||
|
||
export default convertNxGenerator(migrateScrollAreaGenerator); |
Oops, something went wrong.