diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 5de72877a..f13797fc9 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -42,6 +42,7 @@ import { MatFormFieldModule } from '@angular/material/form-field'; import { MatSelectModule } from '@angular/material/select'; import { DragDropModule } from '@angular/cdk/drag-drop'; import { CdkTreeModule } from '@angular/cdk/tree'; +import { ScrollingModule } from '@angular/cdk/scrolling'; // ngx-translate import { TranslateModule } from '@ngx-translate/core'; @@ -139,7 +140,8 @@ import { PrecisionPipe } from './pipes/precision.pipe'; NgxMatSelectSearchModule, FileDropModule, EditorModule, - CdkTreeModule + CdkTreeModule, + ScrollingModule ], exports: [ FormsModule, @@ -203,7 +205,8 @@ import { PrecisionPipe } from './pipes/precision.pipe'; OwlNativeDateTimeModule, CountdownTimeComponent, MediaUploadContentComponent, - PrecisionPipe + PrecisionPipe, + ScrollingModule ], declarations: [ PermsDirective, diff --git a/client/src/app/site/motions/modules/statute-paragraph/components/statute-paragraph-list/statute-paragraph-list.component.html b/client/src/app/site/motions/modules/statute-paragraph/components/statute-paragraph-list/statute-paragraph-list.component.html index 61a268d81..c273b4bbe 100644 --- a/client/src/app/site/motions/modules/statute-paragraph/components/statute-paragraph-list/statute-paragraph-list.component.html +++ b/client/src/app/site/motions/modules/statute-paragraph/components/statute-paragraph-list/statute-paragraph-list.component.html @@ -12,7 +12,6 @@ -
New statute paragraph @@ -42,77 +41,84 @@ - - - - - {{ statuteParagraph.title }} - - -
- Edit statute paragraph: -

- - - - Required - - -

- - -

Statute paragraph

- -
-
- - - {{ statuteParagraph.title }} - -
-
-
-
- - - - - - -
-
+ + + + + + {{ statuteParagraph.title }} + + +
+ Edit statute paragraph: +

+ + + + Required + + +

+ + +

Statute paragraph

+ +
+
+ + + {{ statuteParagraph.title }} + +
+
+
+
+ + + + + + +
+
+
diff --git a/client/src/styles.scss b/client/src/styles.scss index ac2eae328..569e4a178 100644 --- a/client/src/styles.scss +++ b/client/src/styles.scss @@ -469,8 +469,24 @@ button.mat-menu-item.selected { margin: 0 65px; } +/** + * cdk-virtual-scroll-viewport requires a hight, otherwise it would always be 0 + * Depending in mobile-mode and desktop mode we need to subtract different values + * from 100vh + */ +.virtual-scroll-full-page { + height: calc(100vh - 128px); +} + /** media queries */ +/* medium to small */ +@media only screen and (max-width: 960px) { + .virtual-scroll-full-page { + height: calc(100vh - 64px); + } +} + /* medium */ @media only screen and (min-width: 500px) and (max-width: 960px) { .content-container {