From: Rigel Kent Date: Fri, 12 Jun 2020 10:26:48 +0000 (+0200) Subject: match margin of abstract-video-list and sub-menu's fixed margin X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d39db21a883d71d101912c0e6e42e97927edb693;p=oweals%2Fpeertube.git match margin of abstract-video-list and sub-menu's fixed margin --- diff --git a/client/src/app/+accounts/account-about/account-about.component.html b/client/src/app/+accounts/account-about/account-about.component.html index 3ae11b49c..1f1987aba 100644 --- a/client/src/app/+accounts/account-about/account-about.component.html +++ b/client/src/app/+accounts/account-about/account-about.component.html @@ -1,12 +1,14 @@ -
-
-
DESCRIPTION
-
+
+
+
+
DESCRIPTION
+
+
+ +
+
STATS
+ +
Joined {{ account.createdAt | date }}
+
- -
-
STATS
- -
Joined {{ account.createdAt | date }}
-
-
\ No newline at end of file +
diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index 12170e371..e6ab3c036 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -15,6 +15,13 @@ } } +.margin-content { + // margin-content is required, but child views have their own margins + // that match views outside the scope of accounts, so we only align + // them with the margins of .sub-menu when required. + margin: 0; +} + .right-buttons { display: flex; height: max-content; diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html index c02213ebb..8dff8ba91 100644 --- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html +++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html @@ -1,20 +1,22 @@ -
-
-
-
DESCRIPTION
-
+
+
+
+
+
DESCRIPTION
+
+
+ +
+
SUPPORT THIS CHANNEL
+
+
- -
-
SUPPORT THIS CHANNEL
-
+ +
+
+
STATS
+
Created {{ videoChannel.createdAt | date }}
+
- -
-
-
STATS
-
Created {{ videoChannel.createdAt | date }}
-
-
-
\ No newline at end of file +
diff --git a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html index 3990e73da..663585010 100644 --- a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html +++ b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html @@ -1,11 +1,13 @@ -
- Created {{ pagination.totalItems }} playlists -
+
+
+ Created {{ pagination.totalItems }} playlists +
-
This channel does not have playlists.
+
This channel does not have playlists.
-
-
- +
+
+ +
diff --git a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss index f0fe7503f..cb2931858 100644 --- a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss +++ b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss @@ -1,3 +1,7 @@ +.title-page { + margin-top: 0; +} + .video-playlist { display: flex; flex-wrap: wrap; diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index 0a49f53cf..22f21dcc6 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -40,6 +40,13 @@ } } +.margin-content { + // margin-content is required, but child views have their own margins + // that match views outside the scope of accounts, so we only align + // them with the margins of .sub-menu when required. + margin: 0; +} + .right-buttons { display: flex; height: max-content; diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index d79086723..d82d78d58 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss @@ -185,8 +185,8 @@ $play-overlay-width: 18px; } @mixin fluid-videos-miniature-layout { - margin-left: 3vw !important; - margin-right: 3vw !important; + margin-left: $not-expanded-horizontal-margins !important; + margin-right: $not-expanded-horizontal-margins !important; @media screen and (max-width: $mobile-view) { width: auto;