X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment.component.scss;h=c90f9849bdcc6ba28cf86d1bce0f0126f81615f1;hb=13a6b53655cdd7baba494abc3c9ff52788d4651e;hp=3b0b7eafdb776f4f248b9a3c84d67b208add25f8;hpb=2f3d0f2639bb9c883abe19db8844c0d910c04e01;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.scss b/client/src/app/videos/+video-watch/comment/video-comment.component.scss index 3b0b7eafd..c90f9849b 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.scss +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.scss @@ -14,6 +14,8 @@ .comment { flex-grow: 1; + // Fix word-wrap with flex + min-width: 1px; .highlighted-comment { display: inline-block; @@ -44,9 +46,7 @@ } .comment-html { - word-wrap: initial; - word-break: normal; - text-align: justify; + @include peertube-word-wrap; /deep/ a { @include disable-default-a-behaviour; @@ -76,3 +76,26 @@ } } } + +// Decrease the space of child comments on small screens +@media screen and (max-width: 1600px) { + .children { + margin-left: -20px; + } +} + +@media screen and (max-width: 1200px) { + .children { + margin-left: -30px; + } +} + +@media screen and (max-width: 600px) { + .children { + margin-left: -40px; + } + + .root-comment { + img { margin-right: 10px; } + } +}