summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 17:52:42 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 17:52:42 +0530
commit194ec63d81ed7c8d6f63945139ea6d0bdfc597b3 (patch)
tree471154f9b62ebd50e4bd647b1aa7fab706b4a8b1
parent2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb (diff)
downloadlegit-194ec63d81ed7c8d6f63945139ea6d0bdfc597b3.tar.gz
legit-194ec63d81ed7c8d6f63945139ea6d0bdfc597b3.tar.bz2
legit-194ec63d81ed7c8d6f63945139ea6d0bdfc597b3.zip
file: separate content and line numbers
-rw-r--r--static/style.css6
-rw-r--r--templates/file.html2
2 files changed, 6 insertions, 2 deletions
diff --git a/static/style.css b/static/style.css
index 64ff978..1a59591 100644
--- a/static/style.css
+++ b/static/style.css
@@ -229,11 +229,15 @@ a:hover {
flex-direction: row;
grid-template-columns: 1rem minmax(0, 1fr);
gap: 1rem;
- overflow: scroll;
padding: 0.5rem;
background: var(--light-gray);
}
+.file-content {
+ background: var(--light-gray);
+ overflow: scroll;
+}
+
.commit-info {
color: var(--gray);
padding-bottom: 1.5rem;
diff --git a/templates/file.html b/templates/file.html
index f231969..ab432d3 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -14,7 +14,7 @@
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</div>
- <div>
+ <div class="file-content">
<span></span>
<pre>
{{- .content -}}