From 945aa847aa24ebcc1c9e9b9b83df420dcb8b292e Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Mon, 9 Sep 2019 09:54:14 +0200 Subject: [PATCH] Fixing too long href --- basetheme_bootstrap/static/css/basetheme_bootstrap4.css | 4 ++++ .../static/css/basetheme_bootstrap4_pasteur.css | 4 ++++ .../templates/basetheme_bootstrap/about.example.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/basetheme_bootstrap/static/css/basetheme_bootstrap4.css b/basetheme_bootstrap/static/css/basetheme_bootstrap4.css index f3785b9..737eff6 100644 --- a/basetheme_bootstrap/static/css/basetheme_bootstrap4.css +++ b/basetheme_bootstrap/static/css/basetheme_bootstrap4.css @@ -21,6 +21,10 @@ user-select: none; } +.href-break-all a[href], a[href].href-break-all{ + word-break: break-all !important; +} + @media (min-width: 768px) { .bd-placeholder-img-lg { font-size: 3.5rem; diff --git a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css index 23afdab..a397f5b 100644 --- a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css +++ b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css @@ -4,6 +4,10 @@ } } +.href-break-all a[href], a[href].href-break-all{ + word-break: break-all !important; +} + .content-page-title .btn, html { font-family: "Brandon","Arial","Helvetica",sans-serif; diff --git a/basetheme_bootstrap/templates/basetheme_bootstrap/about.example.html b/basetheme_bootstrap/templates/basetheme_bootstrap/about.example.html index ea9f348..5e22ffb 100644 --- a/basetheme_bootstrap/templates/basetheme_bootstrap/about.example.html +++ b/basetheme_bootstrap/templates/basetheme_bootstrap/about.example.html @@ -5,7 +5,7 @@ {% block content%} <div class="col-xs-12 col-12"> <h2>{%trans "Team"%}</h2> - <table class="table"> + <table class="table href-break-all"> <thead> <tr> <th>{%trans "Last name"%}</th> -- GitLab