diff --git a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.html b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.html index 2e02a07d9..d18d66b3e 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.html +++ b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.html @@ -35,27 +35,39 @@ {{ 'Select paragraphs' | translate }}
-
- +
- - - -
-
+ + + + +
+
+ + {{ 'Line' | translate }} {{ paragraph.lineFrom }}: + + {{ 'Line' | translate }} {{ paragraph.lineFrom }} - {{ paragraph.lineTo - 1 }}: +
+
+
+
+
diff --git a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.scss b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.scss index 379ab3d09..1ae1d67d2 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.scss +++ b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.scss @@ -1,4 +1,8 @@ .amendment-create-wizard-wrapper { + .paragraph-scroll { + height: calc(100vh - 160px); + } + .paragraph-row { display: flex; flex-direction: row; diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.html b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.html index 0090f247d..2101e1508 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.html +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.html @@ -1,47 +1,52 @@
-
- {{ 'Summary of changes' | translate }}: +
+ + + +
{{ preamble | translate }} @@ -97,10 +102,10 @@
warning
-
+
+ + {{ 'Show amendment' | translate }} + - + + {{ change.amendment.identifier }} + + - - - - + + + - + + + + + diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss index 5171f2885..733aceb8e 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss @@ -1,4 +1,3 @@ -/* Diffbox */ .diff-box { position: relative; border-radius: 3px; @@ -44,48 +43,37 @@ } } -.change-recommendation-overview { +.change-recommendation-summary { border-radius: 3px; - margin-bottom: 15px; - padding: 5px 10px; + padding: 0.5em 0 0 0.5em; + margin-bottom: 1em; - a, - a:link, - a:active { - text-decoration: none; + .summary-of-changes-scroll { + padding-top: 4px; + height: 100px; } - h3 { - margin-top: 10px; + .amendment-link { + margin-left: 0.3em; } ul { + padding: 0 0 0 32px; list-style: none; display: table; + margin-right: 1em; } li { display: table-row; - cursor: pointer; - - &:hover { - text-decoration: underline; - } & > * { display: table-cell; padding: 1px; } } - - .status { - color: gray; - font-style: italic; - } - - .no-changes { - font-style: italic; - color: grey; + .mat-badge-content { + top: -8px !important; } } diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss-theme.scss b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss-theme.scss index ce56453a7..d4851879c 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss-theme.scss +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-detail-diff/motion-detail-diff.component.scss-theme.scss @@ -4,7 +4,7 @@ $background: map-get($theme, background); .motion-detail-diff { - .change-recommendation-overview, + .change-recommendation-summary, .diff-box { background-color: mat-color($background, background); border: 1px solid mat-color($background, selected-button); diff --git a/client/src/styles.scss b/client/src/styles.scss index 924a4e8eb..2c906d5be 100644 --- a/client/src/styles.scss +++ b/client/src/styles.scss @@ -727,6 +727,17 @@ button.mat-menu-item.selected { } } +.smaller-icon-button { + height: 24px !important; + width: 24px !important; + line-height: 24px !important; + + .mat-button-wrapper { + vertical-align: top; + line-height: initial; + } +} + /** * Fix to enable multi line mat hints. See: * https://github.com/angular/components/issues/5227