2 files changed,
19 insertions(+),
7 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-01-28 21:20:46 +0200
Change ID:
kvkvzprtnskqxzoqnqokqpsozpkosxmt
Parent:
2ce68d4
jump to
| M | web/static/style.css |
| M | web/templates/repo_log.html |
M
web/static/style.css
@@ -283,21 +283,30 @@ text-overflow: ellipsis;
vertical-align: top; } -.log td.author .author-tip { +/* Unified tooltip system */ +.tooltip { display: none; position: absolute; left: 0; top: 100%; margin-top: 0.25rem; - padding: 0.35rem 0.5rem; + padding: 0.5rem 0.7rem; background: var(--white); border: 1px solid var(--medium-gray); + border-radius: 4px; + box-shadow: 0 2px 8px rgba(0,0,0,0.1); + z-index: 10; + font-size: 0.85em; + line-height: 1.3; max-width: 48ch; - z-index: 2; + white-space: nowrap; } -.log td.author:hover .author-tip, -.log td.author:focus-within .author-tip { +.author, .age { position: relative; } +.author:hover .tooltip, +.author:focus-within .tooltip, +.age:hover .tooltip, +.age:focus-within .tooltip { display: block; }
M
web/templates/repo_log.html
@@ -27,12 +27,15 @@ <td class="author">
<span class="author-short"> {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> </span> - <span class="author-tip" role="tooltip"> + <span class="tooltip" role="tooltip"> <strong>{{ .Author.Name }}</strong><br> <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> </span> </td> - <td class="age">{{ humanizeTime .Committer.When }}</td> + <td class="age"> + <span class="age-display">{{ humanizeTime .Committer.When }}</span> + <span class="tooltip" role="tooltip">{{ .Committer.When }}</span> + </td> </tr> {{ end }} </tbody>