Procházet zdrojové kódy

Wrap the reader view article subtitle on narrow screens (#9369)

In the reader view, the feed name, authors and date share one
horizontal-list row whose items are `flex: 0 0 auto` and whose date is
a fixed 155px wide. The row could neither wrap nor shrink, so a long
feed name or author list pushed the date past the article box, and on
a phone the whole page scrolled sideways.

Let the row wrap and let its items shrink, so a long feed name is
ellipsized and the authors wrap inside the box. On narrow screens the
date then sits on its own line, so drop its fixed width there.
Rows that already fit are laid out as before.

Closes #9360
Abdelrhman Mohamed před 1 měsícem
rodič
revize
e7cbb59c66
3 změnil soubory, kde provedl 29 přidání a 0 odebrání
  1. 1 0
      CREDITS.md
  2. 14 0
      p/themes/base-theme/frss.css
  3. 14 0
      p/themes/base-theme/frss.rtl.css

+ 1 - 0
CREDITS.md

@@ -312,6 +312,7 @@ People are sorted by name so please keep this order.
 * [scmaybee](https://github.com/scmaybee): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:scmaybee)
 * [scmaybee](https://github.com/scmaybee): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:scmaybee)
 * [scollovati](https://github.com/scollovati): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:scollovati)
 * [scollovati](https://github.com/scollovati): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:scollovati)
 * [Sebastian K](https://github.com/skrollme): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:skrollme)
 * [Sebastian K](https://github.com/skrollme): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:skrollme)
+* [Sharawey74](https://github.com/Sharawey74): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Sharawey74)
 * [shn7798](https://github.com/shn7798): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:shn7798)
 * [shn7798](https://github.com/shn7798): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:shn7798)
 * [Simone "roughnecks" Canaletti](https://github.com/roughnecks): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:roughnecks), [Web](https://woodpeckersnest.space/)
 * [Simone "roughnecks" Canaletti](https://github.com/roughnecks): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:roughnecks), [Web](https://woodpeckersnest.space/)
 * [sirideain](https://github.com/sirideain): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:sirideain)
 * [sirideain](https://github.com/sirideain): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:sirideain)

+ 14 - 0
p/themes/base-theme/frss.css

@@ -1775,6 +1775,15 @@ a.website:hover .favicon {
 	align-self: flex-start;
 	align-self: flex-start;
 }
 }
 
 
+.content .subtitle.horizontal-list {
+	flex-wrap: wrap;
+}
+
+.content .subtitle.horizontal-list .item {
+	flex-shrink: 1;
+	min-width: 0;
+}
+
 .content .article-header-topline.horizontal-list .item .website,
 .content .article-header-topline.horizontal-list .item .website,
 .content .subtitle.horizontal-list .item .website {
 .content .subtitle.horizontal-list .item .website {
 	display: inline-block;
 	display: inline-block;
@@ -2858,6 +2867,11 @@ html.slider-active {
 		padding: 1rem;
 		padding: 1rem;
 	}
 	}
 
 
+	.content .subtitle.horizontal-list .item.date {
+		width: auto;
+		text-align: left;
+	}
+
 	table {
 	table {
 		font-size: 0.9rem;
 		font-size: 0.9rem;
 	}
 	}

+ 14 - 0
p/themes/base-theme/frss.rtl.css

@@ -1775,6 +1775,15 @@ a.website:hover .favicon {
 	align-self: flex-start;
 	align-self: flex-start;
 }
 }
 
 
+.content .subtitle.horizontal-list {
+	flex-wrap: wrap;
+}
+
+.content .subtitle.horizontal-list .item {
+	flex-shrink: 1;
+	min-width: 0;
+}
+
 .content .article-header-topline.horizontal-list .item .website,
 .content .article-header-topline.horizontal-list .item .website,
 .content .subtitle.horizontal-list .item .website {
 .content .subtitle.horizontal-list .item .website {
 	display: inline-block;
 	display: inline-block;
@@ -2858,6 +2867,11 @@ html.slider-active {
 		padding: 1rem;
 		padding: 1rem;
 	}
 	}
 
 
+	.content .subtitle.horizontal-list .item.date {
+		width: auto;
+		text-align: right;
+	}
+
 	table {
 	table {
 		font-size: 0.9rem;
 		font-size: 0.9rem;
 	}
 	}