Skip to content

Commit 960b793

Browse files
Sammy-Twillnorris
authored andcommitted
Fix table overflow
The table content overflows on small screens. This allows it to scroll so it doesn't affect the rest of the page. Signed-off-by: Sammy-T <[email protected]>
1 parent 491e529 commit 960b793

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

static/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,10 @@ select {
12391239
display: none;
12401240
}
12411241

1242+
.overflow {
1243+
overflow: auto;
1244+
}
1245+
12421246
.min-h-screen {
12431247
min-height: 100vh;
12441248
}

tmpl/help.html

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,30 @@ <h2 id="advanced">Advanced destination links</h2>
8181

8282
<h3>Examples</h3>
8383

84-
<table>
85-
<tr>
86-
<td>Include path in query</td>
87-
<td>{{go}}/search</td>
88-
<td>{{`https://cloudsearch.google.com/{{if .Path}}cloudsearch/search?q={{QueryEscape .Path}}{{end}}`}}</td>
89-
</tr>
90-
<tr>
91-
<td>Include path in destination path</td>
92-
<td>{{go}}/slack</td>
93-
<td>{{`https://company.slack.com/{{if .Path}}channels/{{PathEscape .Path}}{{end}}`}}</td>
94-
</tr>
95-
<tr>
96-
<td>Include path in hostname</td>
97-
<td>{{go}}/varz</td>
98-
<td>{{`http://{{if .Path}}{{.Path}}{{else}}host{{end}}.example/debug/varz`}}</td>
99-
</tr>
100-
<tr>
101-
<td>Include today's date in wiki page</td>
102-
<td>{{go}}/today</td>
103-
<td>{{`http://wiki/{{.Now.Format "01-02-2006"}}`}}</td>
104-
</tr>
105-
</table>
84+
<div class="overflow">
85+
<table>
86+
<tr>
87+
<td>Include path in query</td>
88+
<td>{{go}}/search</td>
89+
<td>{{`https://cloudsearch.google.com/{{if .Path}}cloudsearch/search?q={{QueryEscape .Path}}{{end}}`}}</td>
90+
</tr>
91+
<tr>
92+
<td>Include path in destination path</td>
93+
<td>{{go}}/slack</td>
94+
<td>{{`https://company.slack.com/{{if .Path}}channels/{{PathEscape .Path}}{{end}}`}}</td>
95+
</tr>
96+
<tr>
97+
<td>Include path in hostname</td>
98+
<td>{{go}}/varz</td>
99+
<td>{{`http://{{if .Path}}{{.Path}}{{else}}host{{end}}.example/debug/varz`}}</td>
100+
</tr>
101+
<tr>
102+
<td>Include today's date in wiki page</td>
103+
<td>{{go}}/today</td>
104+
<td>{{`http://wiki/{{.Now.Format "01-02-2006"}}`}}</td>
105+
</tr>
106+
</table>
107+
</div>
106108

107109
<h2 id="api">Application Programming Interface (API)</h2>
108110

0 commit comments

Comments
 (0)