Download:
child 12:b336f622574b
parent 10:c297fea207d4
11:9cc3a588140c
Anton Shestakov <av6@dwimlabs.net>, Tue, 11 Oct 2016 02:44:09 +0800
annotate: fix upstream issue5398, take two Now with 100% more "top: 0;" (and also "left: 100%;").

2 файлов изменено, 9 вставок(+), 2 удалений(-) [+]
templates/kit/map file | annotate | diff | comparison | revisions
templates/static/style-kit.css file | annotate | diff | comparison | revisions
--- a/templates/kit/map Tue Oct 11 02:28:13 2016 +0800
+++ b/templates/kit/map Tue Oct 11 02:44:09 2016 +0800
@@ -98,7 +98,8 @@
annotateline = '
<tr id="{lineid}" {ifeq(node, originalnode, ' class="kit-this-rev"')}>
<td class="uk-visible-hover uk-position-relative uk-text-top kit-block-parity{blockparity}">
- <div class="uk-hidden uk-position-absolute uk-position-z-index uk-panel uk-panel-box uk-margin-large-left uk-text-nowrap">
+ {if(blockhead, '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">{rev}</a>')}
+ <div class="uk-hidden uk-panel uk-panel-box uk-text-nowrap kit-annotate-panel">
<div>
<a class="kit-monospace" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{rev}:{node|short}</a>
{desc|escape|firstline}
@@ -108,7 +109,6 @@
<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">line</a> |
<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
</div>
- {if(blockhead, '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">{rev}</a>')}
</td>
<td class="kit-monospace kit-annotate-line"><a href="#{lineid}" class="kit-line-number" data-line-number="{linenumber}"></a>{line|escape}</td>
</tr>'
--- a/templates/static/style-kit.css Tue Oct 11 02:28:13 2016 +0800
+++ b/templates/static/style-kit.css Tue Oct 11 02:44:09 2016 +0800
@@ -98,6 +98,13 @@
background: #eee;
}
+.kit-annotate-panel {
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 100%;
+}
+
.kit-this-rev {
background-color: #ecfdf0;
}