Skip to content

Commit 787b81b

Browse files
authored
Merge pull request rails#47488 from jkotchoff/rails-info-routes-layout-compaction
Line break long routes to prevent scrolling
2 parents b5858e3 + b111318 commit 787b81b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,37 @@
22
#route_table {
33
margin: 0;
44
border-collapse: collapse;
5+
word-wrap:break-word;
6+
table-layout: fixed;
7+
width:100%;
58
}
69

710
#route_table thead tr {
811
border-bottom: 2px solid #ddd;
912
}
1013

14+
#route_table th {
15+
padding-left: 30px;
16+
text-align: left;
17+
}
18+
1119
#route_table thead tr.bottom {
1220
border-bottom: none;
1321
}
1422

1523
#route_table thead tr.bottom th {
16-
padding: 10px 0;
24+
padding: 10px 30px;
1725
line-height: 15px;
1826
}
1927

2028
#route_table thead tr.bottom th input#search {
2129
-webkit-appearance: textfield;
2230
}
2331

32+
#route_table thead th.http-verb {
33+
width: 10%;
34+
}
35+
2436
#route_table tbody tr {
2537
border-bottom: 1px solid #ddd;
2638
}
@@ -66,7 +78,7 @@
6678
<thead>
6779
<tr>
6880
<th>Helper</th>
69-
<th>HTTP Verb</th>
81+
<th class="http-verb">HTTP Verb</th>
7082
<th>Path</th>
7183
<th>Controller#Action</th>
7284
</tr>

0 commit comments

Comments
 (0)