X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-videos%2Fmy-account-videos.component.scss;h=67a58d8d5567507106b1c1056a5a2240449e36cd;hb=e66883b37ae0796256b3aba550670a2d76cfc98a;hp=8248cc94faae3fa4a8031903632fc56b51902241;hpb=7c1f3e73667c013bcebdfbd75d55ba8ef83c6b54;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss index 8248cc94f..67a58d8d5 100644 --- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss @@ -29,6 +29,10 @@ } ::ng-deep { + .video { + flex-wrap: wrap; + } + .action-button span { white-space: nowrap; } @@ -50,7 +54,79 @@ } } +.action-button { + display: flex; + margin-left: 55px; + margin-top: 10px; + align-self: flex-end; +} + my-delete-button, my-edit-button { margin-right: 10px; } + +@media screen and (max-width: $small-view) { + .videos-header { + flex-direction: column; + } + + .action-button { + flex-direction: column; + align-self: center; + margin-left: 0px; + } + + ::ng-deep { + .video-miniature { + align-items: center; + + .video-bottom, + .video-bottom .video-miniature-information { + /* same width than a.video-thumbnail */ + max-width: $video-thumbnail-width !important; + } + } + } + + my-delete-button, + my-edit-button { + margin-right: 0px; + + ::ng-deep { + span, a { + margin-right: 0px; + } + } + } + + my-delete-button, + my-edit-button, + my-button { + margin-top: 15px; + width: 100%; + text-align: center; + + ::ng-deep { + .action-button { + /* same width than a.video-thumbnail */ + width: $video-thumbnail-width; + } + } + } +} + +// Adapt my-video-miniature on small screens with menu +@media screen and (min-width: $small-view) and (max-width: #{breakpoint(lg) + ($not-expanded-horizontal-margins / 3) * 2}) { + :host-context(.main-col:not(.expanded)) { + ::ng-deep { + .video-miniature { + flex-direction: column; + + .video-miniature-name { + max-width: $video-thumbnail-width; + } + } + } + } +}