From da18f9eb1497e514cfe29ee8b1f15bc607264161 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Fri, 3 Feb 2023 17:30:37 -0700 Subject: [PATCH] fix file view --- static/style.css | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/static/style.css b/static/style.css index 901a8df..e411b33 100644 --- a/static/style.css +++ b/static/style.css @@ -274,7 +274,8 @@ a:hover { -webkit-user-select: none; -o-user-select: none; user-select: none; - display: flex; + display: inline-block; + text-align: right; float: left; flex-direction: column; margin-right: 1ch; @@ -284,23 +285,35 @@ a:hover { background: var(--light-gray); display: table; padding: 0.5rem - width: 100%; margin-top: 0.5rem; -} - -tr { - display:flex; - flex-direction: row; + overflow-x: auto; } .file-content { background: var(--light-gray); overflow-y: hidden; overflow-x: auto; - display: inline-block; - width: 100%; } +@supports (display: flex) { + .file-wrapper { + width: 100%; + max-width: 750px; + } + .file-wrapper tr { + display:flex; + flex-direction: row; + width: 80vw; + max-width: 750px; + } + .line-numbers { + display: flex; + } + .file-content { + display: iniline-block; + width: 100%; + } +} .diff-type { color: var(--gray); }