]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix channel buttons height
authorChocobozzz <me@florianbigard.com>
Wed, 22 Feb 2023 08:03:41 +0000 (09:03 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 22 Feb 2023 08:03:41 +0000 (09:03 +0100)
client/src/app/+video-channels/video-channels.component.scss
client/src/app/shared/shared-user-subscription/subscribe-button.component.scss

index c8b182196f065323991b02b2f52403ccc50dfe3b..aba266fcca328517e115e8e54b877e62b97b96e7 100644 (file)
 }
 
 .channel-info {
+  // Use the same margin as the videos grid
   @include grid-videos-miniature-margins(false, 15px);
+  @include margin-bottom(3rem);
 
   display: grid;
   grid-template-columns: 1fr auto;
   grid-template-rows: auto auto;
 
   background-color: pvar(--channelBackgroundColor);
-  margin-bottom: 45px;
   padding-top: var(--myGlobalTopPadding);
   font-size: var(--myFontSize);
 }
 
 .channel-buttons {
   display: flex;
+  align-items: center;
   flex-wrap: wrap;
+  gap: 1rem;
 
-  > *:not(:last-child) {
-    @include margin-right(15px);
+  &.right {
+    @include margin-left(3rem);
   }
-}
 
-.channel-buttons.right {
-  @include margin-left(45px);
-}
+  // Only used on small screen
+  &.bottom {
+    @include margin-bottom(2rem);
 
-// Only used by mobile
-.channel-buttons.bottom {
-  display: none;
+    justify-content: center;
+    display: none;
+  }
 }
 
 .owner-card {
   @include margin-left(105px);
+
   grid-column: 2;
   // Takes all the column
   grid-row: 1 / 3;
     display: inline-block;
   }
 
-  .channel-buttons.bottom {
-    display: flex;
-    justify-content: center;
-    margin-bottom: 30px;
-  }
+  .channel-buttons {
+    &.right {
+      display: none;
+    }
 
-  .channel-buttons.right {
-    display: none;
+    &.bottom {
+      display: flex;
+    }
   }
 
   .owner-card {
index 889596b620ec65c56a905e0def114dfc3ed1b0ce..9727311167e2a043d32a6b98f3a07c4dafa0de0e 100644 (file)
@@ -4,6 +4,8 @@
 .btn-group-subscribe {
   @include peertube-button;
 
+  padding: 0;
+
   button.dropdown-toggle {
     font-size: $button-font-size;
     line-height: 1.2;