Skip to content

Commit

Permalink
cmd/dgit: Line numbers are not user-selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
djmoch committed Nov 6, 2023
1 parent de3891a commit 9cdea36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions cmd/dgit/internal/serve/assets/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,25 @@ nav table {
}

.linenum {
user-select: none;
text-align: right;
border-right: 1px solid;
padding-left: 5px;
padding-right: 5px;
}

.line-content {
.line-content, .readme {
padding-left: 5px;
padding-right: 5px;
}

code {
background: #eee;
background-color: #eee;
}
code tr {
height: 17px;

code tr {
height: 17px;
}

pre code {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dgit/internal/serve/assets/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/dgit/internal/serve/assets/site.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/dgit/templates/tree.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{- range .Tree.Entries }}
<tr><td>{{ .Mode.String }}</td><td><a href="{{ .Href }}">{{ .Name }}</a></td></tr>{{ end }}
</table>{{ end }}
{{ if .HasReadme }}<pre><code>{{ .Readme }}</code></pre> {{ end }}
{{ if .HasReadme }}<pre><code class="readme">{{ .Readme }}</code></pre> {{ end }}
</div>
</body>
</html>

0 comments on commit 9cdea36

Please sign in to comment.