From: Rigel Kent Date: Thu, 2 Jul 2020 17:45:21 +0000 (+0200) Subject: align feed icons to the right for video listings X-Git-Tag: v2.3.0-rc.1~21 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2b587cad93381a1901df3c993bf1db90bbb0891f;hp=2d011d94aa4086af3a87e254552062599d8c50bd;p=github%2FChocobozzz%2FPeerTube.git align feed icons to the right for video listings --- 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; }