From 2b587cad93381a1901df3c993bf1db90bbb0891f Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 2 Jul 2020 19:45:21 +0200 Subject: [PATCH] align feed icons to the right for video listings --- .../shared-main/buttons/button.component.scss | 10 +++++--- .../shared-main/feeds/feed.component.html | 8 ++---- .../abstract-video-list.html | 22 +++++++++------- .../abstract-video-list.scss | 25 ++++++++++++------- 4 files changed, 37 insertions(+), 28 deletions(-) diff --git a/client/src/app/shared/shared-main/buttons/button.component.scss b/client/src/app/shared/shared-main/buttons/button.component.scss index f37decdef..1a28dd981 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.scss +++ b/client/src/app/shared/shared-main/buttons/button.component.scss @@ -7,13 +7,15 @@ my-small-loader ::ng-deep .root { width: 20px; } +span[class$=-button] { + > span { + margin-left: 5px; + } +} + .action-button { @include peertube-button-link; @include button-with-icon(21px, 0, -1px); - - > span:nth-child(2) { - margin-left: 5px; - } } .orange-button { diff --git a/client/src/app/shared/shared-main/feeds/feed.component.html b/client/src/app/shared/shared-main/feeds/feed.component.html index ac0b1f454..6b8013a9b 100644 --- a/client/src/app/shared/shared-main/feeds/feed.component.html +++ b/client/src/app/shared/shared-main/feeds/feed.component.html @@ -1,10 +1,6 @@ -
+
diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.html b/client/src/app/shared/shared-video-miniature/abstract-video-list.html index 70be78af0..6df589c38 100644 --- a/client/src/app/shared/shared-video-miniature/abstract-video-list.html +++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.html @@ -9,19 +9,23 @@
- - +
+ + + +
diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss index 1660c6812..7841b60f7 100644 --- a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss +++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss @@ -3,32 +3,39 @@ @import '_mixins'; @import '_miniature'; +$iconSize: 16px; + .videos-header { display: flex; justify-content: space-between; - align-items: baseline; + align-items: center; .title-page.title-page-single { display: flex; - - my-feed { - display: inline-block; - top: 1px; - width: max-content; - } + flex-grow: 1; } .action-block { + ::ng-deep my-feed { + my-global-icon { + width: calc(#{$iconSize} - 2px); + } + } + a button { @include peertube-button; @include grey-button; - @include button-with-icon(18px, 3px, -1px); + @include button-with-icon($iconSize, 3px, -1px); } } .moderation-block { + div { + @include button-with-icon($iconSize, 3px, -1px); + } + + margin-left: .2rem; display: flex; - flex-grow: 1; justify-content: flex-end; align-items: center; }