From fc001e7427f498ff5d1da46f6bb50393fba74afe Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 24 Aug 2018 14:48:02 -0700 Subject: Fix comments with long usernames breaking comment section --- youtube/comments.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'youtube/comments.css') diff --git a/youtube/comments.css b/youtube/comments.css index fb3e629..18d0488 100644 --- a/youtube/comments.css +++ b/youtube/comments.css @@ -6,9 +6,10 @@ .comment{ display:grid; - grid-template-columns: 0fr 0fr 1fr; + grid-template-columns: auto auto 100px 1fr; grid-template-rows: 0fr 0fr 0fr 0fr; background-color: #dadada; + justify-content: start; } .comment .author-avatar{ @@ -25,10 +26,11 @@ grid-row: 1; margin-right:15px; white-space: nowrap; + overflow:hidden; } .comment .text{ - grid-column: 2 / span 2; + grid-column: 2 / span 3; grid-row: 2; white-space: pre-wrap; min-width: 0; -- cgit v1.2.3