From 3e1b3e8ea8098847d9769b37c340cb3255b5399b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Mar 2021 20:27:20 +0300 Subject: grid: add workaround for a single loaded headline not spanning all columns --- themes/light/tt-rss.less | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'themes/light') diff --git a/themes/light/tt-rss.less b/themes/light/tt-rss.less index db17647a4..fe8dd91a0 100644 --- a/themes/light/tt-rss.less +++ b/themes/light/tt-rss.less @@ -762,6 +762,16 @@ body.ttrss_main { grid-gap : 8px; padding : 8px; + &[data-headlines-count="1"] { + #headlines-spacer, .whiteBox, .feed-title { + grid-column: 1; + } + } + + #headlines-spacer, .whiteBox, .feed-title { + grid-column : 1 e("/") -1; + } + .cdm.expanded { .header, .content { @@ -807,10 +817,6 @@ body.ttrss_main { word-break: break-all; } } - - #headlines-spacer, .whiteBox, .feed-title { - grid-column : 1 e("/") -1; - } } #headlines-frame { -- cgit v1.2.3