[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764178: debsources: infobox CSS alignment problem with short files



Hello,

I have made this small patch that fixes the text overlapping on the infobox.

The other issue (that the box containing the infobox was not big enough)
seems to have been fixed by 0ed831b256a91287ebfe63c9a52cbbb76816a293 on
October 12th


Cheers

-- 
Jason Pleau
>From 97a3760687e0a369ee4aac3c53bbb6eaf2d69882 Mon Sep 17 00:00:00 2001
From: Jason Pleau <jason@jpleau.ca>
Date: Fri, 31 Oct 2014 00:05:26 -0400
Subject: [PATCH] source_file: fix text overlapping the infobox

When browsing a file's source on sources.debian.net, if the file didn't
contain enough text its content would overlap onto the infobox to the
right.

This fixes the issue on at least Chromium 38 and Iceweasel 31.2.

---
 debsources/app/static/css/source_file.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debsources/app/static/css/source_file.css b/debsources/app/static/css/source_file.css
index 58328bc..a70aa30 100644
--- a/debsources/app/static/css/source_file.css
+++ b/debsources/app/static/css/source_file.css
@@ -39,6 +39,10 @@ License: GNU Affero General Public License, version 3 or above.
 
 /* LINE NUMBERS */
 
+#codetable pre{
+    padding-right: 50px;
+}
+
 #codetable #sourceslinenumbers{
     text-align: right;
     border-right: 1px solid black;
-- 
2.1.1


Reply to: