From 19549e2c12b5203b50ba9a8cff5c7890bb75c018 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 5 Nov 2019 20:58:07 -0600 Subject: [PATCH] css: fix overlong parent/child preview boxes on post show page. Bug: if a post had a large number of child posts, the child post preview box would expand beyond the width of the screen. Setting `min-width: 0` makes the flexbox column shrink instead of expand. --- app/javascript/src/styles/common/main_layout.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/src/styles/common/main_layout.scss b/app/javascript/src/styles/common/main_layout.scss index 3761d59b4..e76b157a9 100644 --- a/app/javascript/src/styles/common/main_layout.scss +++ b/app/javascript/src/styles/common/main_layout.scss @@ -43,6 +43,7 @@ footer#page-footer { #content { flex: 1; padding-left: 1em; + min-width: 0; } @media (max-width: 660px) {