From ab386423ef1308c2d77e865418572f10ec8d9254 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 20 Jan 2020 20:33:17 +0100 Subject: [PATCH] Fix position of post header --- .../feed/postlist/postlist.component.sass | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/app/components/feed/postlist/postlist.component.sass b/src/app/components/feed/postlist/postlist.component.sass index 7c486e9..4d5b769 100644 --- a/src/app/components/feed/postlist/postlist.component.sass +++ b/src/app/components/feed/postlist/postlist.component.sass @@ -8,13 +8,22 @@ $mat-card-header-size: 40px !default margin-top: 0.5em outline: none user-select: none - overflow-x: hidden + padding-top: 0 + + .mat-card-header + text-align: left + display: flex + justify-content: center + align-items: center ::ng-deep .mat-card-header-text - margin-top: 10px + margin-top: 16px + word-break: break-all + width: 110% .mat-card-subtitle display: contents + word-break: break-word .mat-card-content overflow: auto @@ -80,9 +89,11 @@ $mat-card-header-size: 40px !default .voteButton scale: 0.8 + transform: scale(0.8) transition-duration: 0.125s &.voted - scale: 0.9 + transform: scale(0.9) + scale: 0.9 .voteCount display: inline @@ -98,9 +109,11 @@ $mat-card-header-size: 40px !default display: flex align-items: center .voteButton - scale: 1 + scale: 0.8 + transform: scale(0.8) &.voted - scale: 1.1 + scale: 1 + transform: scale(1) .mat-card-actions display: -webkit-box