From 146f1e8f8072491ccde73511604348c06b4ec506 Mon Sep 17 00:00:00 2001 From: Alexander Kislov Date: Thu, 21 Sep 2023 16:54:23 +0300 Subject: [PATCH] Add scroll for nav section --- .../ngx-tippy-demo/src/app/app.component.html | 1 + projects/ngx-tippy-demo/src/app/app.module.ts | 2 + .../src/app/components/nav/nav.component.html | 354 +++++++++--------- .../src/app/components/nav/nav.component.scss | 4 + 4 files changed, 185 insertions(+), 176 deletions(-) diff --git a/projects/ngx-tippy-demo/src/app/app.component.html b/projects/ngx-tippy-demo/src/app/app.component.html index bb7baed..874b359 100644 --- a/projects/ngx-tippy-demo/src/app/app.component.html +++ b/projects/ngx-tippy-demo/src/app/app.component.html @@ -17,6 +17,7 @@ +
diff --git a/projects/ngx-tippy-demo/src/app/app.module.ts b/projects/ngx-tippy-demo/src/app/app.module.ts index 94887be..f340333 100644 --- a/projects/ngx-tippy-demo/src/app/app.module.ts +++ b/projects/ngx-tippy-demo/src/app/app.module.ts @@ -31,6 +31,7 @@ import { TuiModeModule, TuiNotificationModule, TuiRootModule, + TuiScrollbarModule, TuiSvgModule, TuiThemeNightModule, } from '@taiga-ui/core'; @@ -97,6 +98,7 @@ function initialize(SchemeService: SchemeService) { TuiRootModule, TuiSvgModule, TuiThemeNightModule, + TuiScrollbarModule, TuiRadioLabeledModule, ], providers: [ diff --git a/projects/ngx-tippy-demo/src/app/components/nav/nav.component.html b/projects/ngx-tippy-demo/src/app/components/nav/nav.component.html index fce9161..d6e9c56 100644 --- a/projects/ngx-tippy-demo/src/app/components/nav/nav.component.html +++ b/projects/ngx-tippy-demo/src/app/components/nav/nav.component.html @@ -1,190 +1,192 @@ - + diff --git a/projects/ngx-tippy-demo/src/app/components/nav/nav.component.scss b/projects/ngx-tippy-demo/src/app/components/nav/nav.component.scss index 4d4552b..985f031 100644 --- a/projects/ngx-tippy-demo/src/app/components/nav/nav.component.scss +++ b/projects/ngx-tippy-demo/src/app/components/nav/nav.component.scss @@ -1,3 +1,7 @@ +.nav-box { + height: calc(100% - 128px); +} + .nav__list { font-size: 1rem; }