2 files changed,
19 insertions(+),
7 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-01-28 21:20:46 +0200
Authored at:
2026-01-28 21:15:53 +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 283 vertical-align: top; 284 284 } 285 285 286 -.log td.author .author-tip { 286 +/* Unified tooltip system */ 287 +.tooltip { 287 288 display: none; 288 289 position: absolute; 289 290 left: 0; 290 291 top: 100%; 291 292 margin-top: 0.25rem; 292 - padding: 0.35rem 0.5rem; 293 + padding: 0.5rem 0.7rem; 293 294 background: var(--white); 294 295 border: 1px solid var(--medium-gray); 296 + border-radius: 4px; 297 + box-shadow: 0 2px 8px rgba(0,0,0,0.1); 298 + z-index: 10; 299 + font-size: 0.85em; 300 + line-height: 1.3; 295 301 max-width: 48ch; 296 - z-index: 2; 302 + white-space: nowrap; 297 303 } 298 304 299 -.log td.author:hover .author-tip, 300 -.log td.author:focus-within .author-tip { 305 +.author, .age { position: relative; } 306 +.author:hover .tooltip, 307 +.author:focus-within .tooltip, 308 +.age:hover .tooltip, 309 +.age:focus-within .tooltip { 301 310 display: block; 302 311 } 303 312
M
web/templates/repo_log.html
路路路 27 27 <span class="author-short"> 28 28 {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> 29 29 </span> 30 - <span class="author-tip" role="tooltip"> 30 + <span class="tooltip" role="tooltip"> 31 31 <strong>{{ .Author.Name }}</strong><br> 32 32 <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> 33 33 </span> 34 34 </td> 35 - <td class="age">{{ humanizeTime .Committer.When }}</td> 35 + <td class="age"> 36 + <span class="age-display">{{ humanizeTime .Committer.When }}</span> 37 + <span class="tooltip" role="tooltip">{{ .Committer.When }}</span> 38 + </td> 36 39 </tr> 37 40 {{ end }} 38 41 </tbody>