From c9bd2f2751306979f1523dab442e1e5b2bb903c7 Mon Sep 17 00:00:00 2001 From: Dominik Wombacher Date: Jan 13 2023 14:31:42 +0000 Subject: fix(theme): long words in source nav break layout The 'srcfpo' theme adds additional information to the commits side navigation, which might contain long words and then break the layout. In that case the content appeared below the navigation and not side-by-side with the commits overview or commit details. To fix this, a text break will be enforced in the relevant div of the 'srcfpo' theme. Also the column width in global 'commit.html' aligned with other template files by setting to 'col-2'. Fixes: https://pagure.io/pagure/issue/5353 --- diff --git a/pagure/templates/commit.html b/pagure/templates/commit.html index 73408ec..4238e0d 100644 --- a/pagure/templates/commit.html +++ b/pagure/templates/commit.html @@ -20,7 +20,7 @@ {# we recognize non-executable file, executable file and symlink #} {% set expected_modes = [33188, 33261, 40960] %}
-
+
{% block overviewtabs %}{{ super() }}{% endblock %}
diff --git a/pagure/themes/srcfpo/static/theme.css b/pagure/themes/srcfpo/static/theme.css index 1831daf..45a5600 100644 --- a/pagure/themes/srcfpo/static/theme.css +++ b/pagure/themes/srcfpo/static/theme.css @@ -13,4 +13,9 @@ .footer a.notblue{ opacity:0.7; -} \ No newline at end of file +} + +.enforce-text-break { + word-wrap: break-word !important; + word-break: break-all !important; +} diff --git a/pagure/themes/srcfpo/templates/repo_master_sidebar.html b/pagure/themes/srcfpo/templates/repo_master_sidebar.html index ee0524a..b3120e9 100644 --- a/pagure/themes/srcfpo/templates/repo_master_sidebar.html +++ b/pagure/themes/srcfpo/templates/repo_master_sidebar.html @@ -1,4 +1,4 @@ -