Skip to content

Commit fa58274

Browse files
committed
Make the table more responsive by breaking on other characters too
1 parent 11257a9 commit fa58274

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

media/commitfest/css/commitfest.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,10 @@ a:hover .badge {
222222
width: 300px;
223223
}
224224
}
225+
226+
/* Allow long text to wrap in table cells */
227+
.table td.wrap-text {
228+
overflow-wrap: break-word;
229+
word-break: break-word;
230+
max-width: 300px;
231+
}

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h3>{{p.is_open|yesno:"Active patches,Closed patches"}}</h3>
5353
{%endifchanged%}
5454

5555
<tr>
56-
<td><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
56+
<td class="wrap-text"><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
5757
<td>{{p.id}}</td>
5858
<td><span class="badge bg-{{p.status|patchstatuslabel}}">{{p.status|patchstatusstring}}</span></td>
5959
<td style="width: min-content;">
@@ -97,9 +97,9 @@ <h3>{{p.is_open|yesno:"Active patches,Closed patches"}}</h3>
9797
{%endif%}
9898
</td>
9999
{%endwith%}
100-
<td>{{p.author_names|default:''}}</td>
101-
<td>{{p.reviewer_names|default:''}}</td>
102-
<td>{{p.committer|default:''}}</td>
100+
<td class="wrap-text">{{p.author_names|default:''}}</td>
101+
<td class="wrap-text">{{p.reviewer_names|default:''}}</td>
102+
<td class="wrap-text">{{p.committer|default:''}}</td>
103103
<td>{{p.num_cfs}}</td>
104104
<td style="white-space: nowrap;" title="{{p.lastmail}}">{%if p.lastmail and userprofile.show_relative_timestamps %}{% cfwhen p.lastmail %}{%elif p.lastmail %}{{p.lastmail|date:"Y-m-d"}}<br/>{{p.lastmail|date:"H:i"}}{%endif%}</td>
105105
{%if user.is_staff%}

pgcommitfest/commitfest/templates/home.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h3>{%if user.is_authenticated%}Open patches you are subscribed to{%elif p.is_op
156156
{%endifchanged%}
157157
{%endif%}
158158
<tr>
159-
<td><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
159+
<td class="wrap-text"><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
160160
<td>{{p.id}}</td>
161161
{%if user.is_authenticated %}
162162
<td><a href="/{{p.cf_id}}/"><span class="badge bg-{{p.cf_status|commitfeststatuslabel}}" title="{{p.cf_status|commitfeststatusstring}}">{{p.cf_name}}</span></a></td>
@@ -203,9 +203,9 @@ <h3>{%if user.is_authenticated%}Open patches you are subscribed to{%elif p.is_op
203203
{%endif%}
204204
</td>
205205
{%endwith%}
206-
<td>{{p.author_names|default:''}}</td>
207-
<td>{{p.reviewer_names|default:''}}</td>
208-
<td>{{p.committer|default:''}}</td>
206+
<td class="wrap-text">{{p.author_names|default:''}}</td>
207+
<td class="wrap-text">{{p.reviewer_names|default:''}}</td>
208+
<td class="wrap-text">{{p.committer|default:''}}</td>
209209
<td>{{p.num_cfs}}</td>
210210
<td style="white-space: nowrap;" title="{{p.lastmail}}">{%if p.lastmail and userprofile.show_relative_timestamps %}{% cfwhen p.lastmail %}{%elif p.lastmail %}{{p.lastmail|date:"Y-m-d"}}<br/>{{p.lastmail|date:"H:i"}}{%endif%}</td>
211211
</tr>

0 commit comments

Comments
 (0)