diff --git a/client/src/app/site/motions/components/motion-detail/motion-detail.component.scss b/client/src/app/site/motions/components/motion-detail/motion-detail.component.scss
index 6f9c0286a..adcf174f3 100644
--- a/client/src/app/site/motions/components/motion-detail/motion-detail.component.scss
+++ b/client/src/app/site/motions/components/motion-detail/motion-detail.component.scss
@@ -107,7 +107,6 @@ span {
.desktop-left {
width: 30%;
float: left;
- padding-left: 65px;
padding-right: 25px;
}
diff --git a/client/src/app/site/motions/components/motion-detail/motion-detail.component.ts b/client/src/app/site/motions/components/motion-detail/motion-detail.component.ts
index af67aefda..c8fa1474f 100644
--- a/client/src/app/site/motions/components/motion-detail/motion-detail.component.ts
+++ b/client/src/app/site/motions/components/motion-detail/motion-detail.component.ts
@@ -923,7 +923,11 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit {
* @param id Motion category id
*/
public setCategory(id: number): void {
- this.repo.setCatetory(this.motion, id);
+ if (id === this.motion.category_id) {
+ this.repo.setCatetory(this.motion, null);
+ } else {
+ this.repo.setCatetory(this.motion, id);
+ }
}
/**
@@ -932,7 +936,11 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit {
* @param id Motion block id
*/
public setBlock(id: number): void {
- this.repo.setBlock(this.motion, id);
+ if (id === this.motion.motion_block_id) {
+ this.repo.setBlock(this.motion, null);
+ } else {
+ this.repo.setBlock(this.motion, id);
+ }
}
/**
diff --git a/client/src/app/site/site.component.ts b/client/src/app/site/site.component.ts
index 8547a02b0..89b14aed8 100644
--- a/client/src/app/site/site.component.ts
+++ b/client/src/app/site/site.component.ts
@@ -114,12 +114,10 @@ export class SiteComponent extends BaseComponent implements OnInit {
}
/**
- * Closes the sidenav in mobile view
+ * Closes the sidenav
*/
public toggleSideNav(): void {
- if (this.vp.isMobile) {
- this.sideNav.toggle();
- }
+ this.sideNav.toggle();
}
/**
diff --git a/client/src/styles.scss b/client/src/styles.scss
index e3cba2ba1..1f0d7f811 100644
--- a/client/src/styles.scss
+++ b/client/src/styles.scss
@@ -318,6 +318,13 @@ mat-panel-title mat-icon {
margin: 8px 8px 8px 0;
}
+.mat-chip-list.user .mat-chip {
+ border-radius: 16px !important;
+ padding: 15px !important;
+ border: solid 1px lightgray;
+ background: #fff;
+}
+
// to display quantities. Use in span or div
.os-amount-chip {
border-radius: 50%;
@@ -338,6 +345,10 @@ button.mat-menu-item.selected {
font-weight: bold !important;
}
+.mat-menu-item .mat-icon {
+ margin-right: 8px !important;
+}
+
.meta-text-block .mat-icon-button {
margin-top: -12px !important;
}
@@ -347,13 +358,16 @@ button.mat-menu-item.selected {
/** helper classes for margin/padding */
.spacer-top-10 {
- margin-top: 10px;
+ margin-top: 10px !important;
}
.spacer-top-20 {
- margin-top: 20px;
+ margin-top: 20px !important;
+}
+.spacer-bottom-10 {
+ margin-bottom: 10px !important;
}
.spacer-bottom-20 {
- margin-bottom: 20px;
+ margin-bottom: 20px !important;
}
.button24 {
background-color: white;
@@ -378,8 +392,7 @@ button.mat-menu-item.selected {
line-height: 24px;
}
}
-.title-left {
- padding-left: 65px;
+.title {
padding-top: 20px;
padding-bottom: 20px;
}
@@ -387,6 +400,32 @@ button.mat-menu-item.selected {
padding-right: 20px;
}
+.content-container {
+ margin: 0 65px;
+}
+
+/** media queries */
+
+/* medium */
+@media only screen and (min-width: 500px) and (max-width: 960px) {
+ .content-container {
+ margin: 0 25px;
+ }
+ .content-container h1 {
+ font-size: 30px
+ }
+}
+/* small */
+@media only screen and (max-width: 500px) {
+ .content-container {
+ margin: 0 15px;
+ }
+ .content-container h1 {
+ font-size: 30px
+ }
+}
+
+
/** more helper classes **/
.center {
text-align: center;