From c443e95d1f35f84932e07423948bc926f6c87395 Mon Sep 17 00:00:00 2001 From: Byron Boutlon Date: Sun, 24 Jun 2018 23:21:31 -0400 Subject: [PATCH] Feature for danvk/webdiff/issues/102 Keep file name visible. Shows the file names above each column of the code diffs even when you scroll down a long diff. --- webdiff/static/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webdiff/static/css/style.css b/webdiff/static/css/style.css index c7a0d53..8356bb1 100644 --- a/webdiff/static/css/style.css +++ b/webdiff/static/css/style.css @@ -3,6 +3,12 @@ div#thediff { max-width: 100%; } +.diff-header { + top: 0px; + position: sticky; + background: white; +} + .diff .line-no, .diff .code { font-family: Inconsolata, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13px;