# HG changeset patch # User dellsystem # Date 1350245575 14400 # Node ID ee999b9f33f5129e5c103c9302cc6dc27115c1ef # Parent 77babc4afe34db07bb58c8deac6550fb7e7e9ae2 Add horizontal scrollbar to snippet history box So that when the history is too deeply nested, you can simply scroll to view the rest rather than them being extremely narrow diff --git a/static/css/agora.css b/static/css/agora.css --- a/static/css/agora.css +++ b/static/css/agora.css @@ -39,7 +39,8 @@ #non-sidebar{display:inline-block;zoom:1;*display:inline;width:710px;padding-right:20px;vertical-align:top;} .hint{border:1px solid #60cae1;background:#c3e9f5;padding:10px;margin-bottom:10px;} hr{border:0;border-top:1px solid #aaaaaa;margin:5px 0;} -.tree ul{list-style-type:none;} +#snippet-history{overflow-x:auto;}#snippet-history ul{white-space:nowrap;padding:0;list-style-type:none;} +#snippet-history >ul{margin-left:0;} #diff{display:none;border:1px solid #e6e6e6;padding:10px;background:#fbfbfb;}#diff .code{white-space:pre-wrap;} #diff .gi{background:#DFD;} #diff .gu{color:#aaaaaa;} diff --git a/static/css/agora.less b/static/css/agora.less --- a/static/css/agora.less +++ b/static/css/agora.less @@ -231,10 +231,18 @@ margin: 5px 0; } -.tree { +#snippet-history { + overflow-x: auto; + ul { + white-space: nowrap; + padding: 0; list-style-type: none; } + + & > ul { + margin-left: 0; + } } #diff { diff --git a/templates/snippet/snippet_details.djhtml b/templates/snippet/snippet_details.djhtml --- a/templates/snippet/snippet_details.djhtml +++ b/templates/snippet/snippet_details.djhtml @@ -115,7 +115,7 @@