From a2f215a37e671b9affb2d16aaacd7f2544f3e973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20H=C3=B6hmann?= Date: Sat, 21 Oct 2017 13:36:22 +0200 Subject: [PATCH 1/6] Get ready for mobile support. --- src/app/_styles.scss | 5 +++-- src/app/aside/_post.component.html | 1 + src/app/main/_page.component.html | 6 +++--- src/app/main/_profile.component.html | 8 ++++---- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/app/_styles.scss b/src/app/_styles.scss index 7c7ab8f..fc53db1 100644 --- a/src/app/_styles.scss +++ b/src/app/_styles.scss @@ -207,6 +207,7 @@ video { .app-toolbar-title, h1 > small > span, h1 > span, +h2 > span, mat-card-footer > *, .separator { @extend .pad; @@ -431,14 +432,14 @@ mat-card-footer > *, } /* - * Everything excapt smaller portrait mode devices. + * Everything except smaller portrait mode devices. */ @media (min-width: 480px) { h1 > small { float: right; } - .mobile-only, h1 br { + .mobile-only { display: none; } } diff --git a/src/app/aside/_post.component.html b/src/app/aside/_post.component.html index 3a6bb20..f6575a8 100644 --- a/src/app/aside/_post.component.html +++ b/src/app/aside/_post.component.html @@ -32,6 +32,7 @@

{{post.likes.summary.total_count}} +
{{page.name}} -
+
-
+
-
+
{{profile.name}} -
+
-
+
-
+
-
+
Date: Sat, 21 Oct 2017 13:45:14 +0200 Subject: [PATCH 2/6] Fix some overlooked breakage from the @angular/material upgrade. --- src/app/_styles.scss | 4 ++++ src/app/aside/_comment.component.html | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/_styles.scss b/src/app/_styles.scss index fc53db1..750f171 100644 --- a/src/app/_styles.scss +++ b/src/app/_styles.scss @@ -72,6 +72,10 @@ mat-card { .mat-card-image { margin: 0 -24px 16px -24px!important; width: calc(100% + 48px)!important; + + img { + width: 100%; + } } .mat-card-image:first-child { diff --git a/src/app/aside/_comment.component.html b/src/app/aside/_comment.component.html index 3ab6680..56afe59 100644 --- a/src/app/aside/_comment.component.html +++ b/src/app/aside/_comment.component.html @@ -2,11 +2,10 @@
- +