X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo-playlist%2Fvideo-playlist-element-miniature.component.scss;h=4d9d249d9f2d62da7b6ae80a65cc1b0d0b01e60c;hb=44d4ee4fcb7cf8beebac73f85693c09919b91e66;hp=f57fd2e1cadfbb3ffb160970555eb758c3f947c4;hpb=bce47964f6241ae56f61089d144b29eb9b5da6d3;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.scss b/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.scss index f57fd2e1c..4d9d249d9 100644 --- a/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.scss +++ b/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.scss @@ -2,6 +2,25 @@ @import '_mixins'; @import '_miniature'; +$thumbnail-width: 130px; +$thumbnail-height: 72px; + +my-video-thumbnail { + @include thumbnail-size-component($thumbnail-width, $thumbnail-height); +} + +.fake-thumbnail { + width: $thumbnail-width; + height: $thumbnail-height; + background-color: #ececec; +} + +my-video-thumbnail, +.fake-thumbnail { + display: flex; // Avoids an issue with line-height that adds space below the element + margin-right: 10px; +} + .video { display: flex; align-items: center; @@ -13,7 +32,7 @@ background-color: rgba(0, 0, 0, 0.05); .more { - display: block; + opacity: 1; } } @@ -24,11 +43,11 @@ a { @include disable-default-a-behaviour; - min-width: 0; + color: var(--mainForegroundColor); display: flex; + min-width: 0; align-items: center; cursor: pointer; - flex-grow: 1; .position { font-weight: $font-semibold; @@ -45,32 +64,14 @@ } } - my-video-thumbnail { - @include thumbnail-size-component(130px, 72px); - - display: flex; // Avoids an issue with line-height that adds space below the element - margin-right: 10px; - } - .video-info { display: flex; flex-direction: column; + align-self: flex-start; min-width: 0; a { - color: var(--mainForegroundColor); width: auto; - - &:hover { - text-decoration: underline !important; - } - } - - .video-info-name { - font-size: 18px; - font-weight: $font-semibold; - - @include ellipsis; } .video-info-account, .video-info-timestamp { @@ -79,14 +80,23 @@ } } + .video-info-name { + font-size: 18px; + font-weight: $font-semibold; + display: inline-block; + + @include ellipsis; + } + .more { justify-self: flex-end; margin-left: auto; cursor: pointer; - display: none; + opacity: 0; + min-width: 24px; &.show { - display: block; + opacity: 1; } .icon-more {