diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-28 15:55:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-28 15:55:49 +0200 |
commit | e390107e5acffda6b6fa994be1f2874183bab40c (patch) | |
tree | 61c5d40683830335df2ce5e7edc414b04f4a552e /client/src | |
parent | f9ac050a354ee91356aa342d10b49033d8b79fe0 (diff) | |
download | PeerTube-e390107e5acffda6b6fa994be1f2874183bab40c.tar.gz PeerTube-e390107e5acffda6b6fa994be1f2874183bab40c.tar.zst PeerTube-e390107e5acffda6b6fa994be1f2874183bab40c.zip |
Fix add to playlist button width
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html | 5 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html index 4aaccd50d..00eed14d3 100644 --- a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html +++ b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html | |||
@@ -24,7 +24,10 @@ | |||
24 | {{ playlist.displayName }} | 24 | {{ playlist.displayName }} |
25 | </label> | 25 | </label> |
26 | 26 | ||
27 | <button class="optional-row-icon button-unstyle" *ngIf="isPrimaryCheckboxChecked(playlist)" (click)="$event.stopPropagation(); toggleOptionalRow(playlist)"> | 27 | <button |
28 | class="optional-row-icon button-unstyle" [ngClass]="{ 'invisible': !isPrimaryCheckboxChecked(playlist) }" | ||
29 | (click)="$event.stopPropagation(); toggleOptionalRow(playlist)" | ||
30 | > | ||
28 | <my-global-icon iconName="add" aria-hidden="true"></my-global-icon> | 31 | <my-global-icon iconName="add" aria-hidden="true"></my-global-icon> |
29 | </button> | 32 | </button> |
30 | </button> | 33 | </button> |
diff --git a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss index d1aa95266..25c7b4525 100644 --- a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss +++ b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss | |||
@@ -50,6 +50,7 @@ | |||
50 | 50 | ||
51 | .primary-row { | 51 | .primary-row { |
52 | display: flex; | 52 | display: flex; |
53 | width: 100%; | ||
53 | 54 | ||
54 | my-peertube-checkbox { | 55 | my-peertube-checkbox { |
55 | @include margin-right(10px); | 56 | @include margin-right(10px); |
@@ -67,7 +68,7 @@ | |||
67 | } | 68 | } |
68 | 69 | ||
69 | .optional-row-icon { | 70 | .optional-row-icon { |
70 | @include margin-left(5px); | 71 | @include margin-left(0.5rem); |
71 | 72 | ||
72 | display: flex; | 73 | display: flex; |
73 | align-items: center; | 74 | align-items: center; |
@@ -78,6 +79,8 @@ | |||
78 | @include apply-svg-color(#333); | 79 | @include apply-svg-color(#333); |
79 | @include margin-right(0); | 80 | @include margin-right(0); |
80 | 81 | ||
82 | position: relative; | ||
83 | top: 1px; | ||
81 | width: 19px; | 84 | width: 19px; |
82 | height: 19px; | 85 | height: 19px; |
83 | } | 86 | } |