From 7a3ee72435fe34e3e05b2dcdf6411f5ca0488199 Mon Sep 17 00:00:00 2001 From: Richard <richard@fsmpi.rwth-aachen.de> Date: Fri, 6 Nov 2020 19:56:21 +0100 Subject: [PATCH] add "effect based" word breaking css class [refs kif/akplanning#102] --- AKPlan/templates/AKPlan/slots_table.html | 4 ++-- static_common/common/css/custom.css | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/AKPlan/templates/AKPlan/slots_table.html b/AKPlan/templates/AKPlan/slots_table.html index 93d8ba12..a9d0b7a6 100644 --- a/AKPlan/templates/AKPlan/slots_table.html +++ b/AKPlan/templates/AKPlan/slots_table.html @@ -4,9 +4,9 @@ <table class="table table-striped"> {% for akslot in slots %} <tr> - <td><b><a href="{% url 'submit:ak_detail' event_slug=event.slug pk=akslot.ak.pk %}">{{ akslot.ak.name }}</a></b></td> + <td class="breakWord"><b><a href="{% url 'submit:ak_detail' event_slug=event.slug pk=akslot.ak.pk %}">{{ akslot.ak.name }}</a></b></td> <td>{{ akslot.start | time:"H:i" }} - {{ akslot.end | time:"H:i" }}</td> - <td>{% if akslot.room and akslot.room.pk != '' %} + <td class="breakWord">{% if akslot.room and akslot.room.pk != '' %} <a href="{% url 'plan:plan_room' event_slug=event.slug pk=akslot.room.pk %}">{{ akslot.room }}</a> {% endif %}</td> </tr> diff --git a/static_common/common/css/custom.css b/static_common/common/css/custom.css index 037b544e..eb1e18ca 100644 --- a/static_common/common/css/custom.css +++ b/static_common/common/css/custom.css @@ -26,3 +26,7 @@ width: 150px; } +.breakWord { + word-break: normal; + overflow-wrap: anywhere; +} -- GitLab