From 3a89a5af4fa505ee1cf3239bafe78fb0f3191e1c Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sep 29 2021 15:41:57 +0000 Subject: srcfpo theme: left-align the lines in description The description texts are taken from package %descriptions, and our packaging guidelines specify that the text is 80-column wrapped. Centering the lines of the text leads to poorly-looking christmas-tree-like layout. People occasionally use lists and such, and this looks especially bad if the vertical alignment is not preserved. I think it's nice to leave the paragraph centered, but with individual lines left-aligned within the paragraph: Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah: - foo - bar blah blah blah blah blah blah blah blah blah blah blah Tested with firefox-92.0.1-1.fc35.x86_64, chromium-93.0.4577.63-1.fc35.x86_64. Signed-off-by: Zbigniew Jędrzejewski-Szmek --- diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html index d6aed5b..b859e2c 100644 --- a/pagure/themes/srcfpo/templates/repo_info.html +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -46,6 +46,11 @@ background: url({{ url_for('theme.static', filename='icons/transtats.png')}}?version={{ g.version}}) 0 50% no-repeat; } .projectinfo { + text-align: left; + margin-left: auto; + margin-right: auto; + display: table; + white-space: pre-wrap; white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */