Skip to content

Commit fe0e31d

Browse files
committed
Update responsive table css to include min-width
On small screens (e.g. mobile) the Patch column especially became really narrow.
1 parent b33a3f5 commit fe0e31d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

media/commitfest/css/commitfest.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,14 @@ a:hover .badge {
227227
.table td.wrap-text {
228228
overflow-wrap: break-word;
229229
word-break: break-word;
230+
min-width: 100px;
230231
max-width: 300px;
231232
}
232233

234+
.table td.patch-column {
235+
min-width: 150px;
236+
}
237+
233238
/* Make the tags selectize dropdown taller with bottom padding for overlay */
234239
#id_tags + .selectize-control .selectize-dropdown-content,
235240
#id_tag + .selectize-control .selectize-dropdown-content {

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 1 addition & 1 deletion
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 class="wrap-text"><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
56+
<td class="wrap-text patch-column"><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;">

pgcommitfest/commitfest/templates/home.html

Lines changed: 1 addition & 1 deletion
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 class="wrap-text"><a href="/patch/{{p.id}}/">{{p.name}}</a></td>
159+
<td class="wrap-text patch-column"><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>

0 commit comments

Comments
 (0)