# HG changeset patch # User domruf # Date 1499022877 -7200 # Node ID 387b8d5510033aa7445e77d0a37bef972413ee8c # Parent 322ce5147fe0971ed1e50ef59bbcc3a745285975 style: rely on css to truncate author name in tables instead of truncating to fixed length Dynamic truncation allows us in the future to use different length on different screen sizes. diff -r 322ce5147fe0 -r 387b8d551003 kallithea/public/css/style.css --- a/kallithea/public/css/style.css Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/public/css/style.css Sun Jul 02 21:14:37 2017 +0200 @@ -1282,6 +1282,13 @@ text-decoration: none; } +td.author { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 210px; +} + .cs_files .progress { margin-bottom: 0; } @@ -1440,9 +1447,6 @@ } #graph_content #changesets td { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; height: 31px; border-color: #cdcdcd; text-align: left; @@ -1458,10 +1462,6 @@ font-size: 0.85em; } -#graph_content tr .author { - width: 105px; -} - #graph_content tr .hash { width: 100px; font-size: 0.85em; diff -r 322ce5147fe0 -r 387b8d551003 kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/templates/changelog/changelog.html Sun Jul 02 21:14:37 2017 +0200 @@ -96,7 +96,7 @@ ${h.gravatar(h.email_or_none(cs.author), size=16)} - ${h.shorter(h.person(cs.author),22)} + ${h.person(cs.author)} ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), class_='changeset_hash')} diff -r 322ce5147fe0 -r 387b8d551003 kallithea/templates/changeset/changeset_range.html --- a/kallithea/templates/changeset/changeset_range.html Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/templates/changeset/changeset_range.html Sun Jul 02 21:14:37 2017 +0200 @@ -36,7 +36,7 @@ ${h.gravatar_div(h.email_or_none(cs.author), size=14)} %endif ${h.link_to(h.short_id(cs.raw_id),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id))} -
${h.person(cs.author)}
+ ${h.person(cs.author)} ${cs.date} %if c.statuses: diff -r 322ce5147fe0 -r 387b8d551003 kallithea/templates/compare/compare_cs.html --- a/kallithea/templates/compare/compare_cs.html Wed Aug 23 03:26:58 2017 +0200 +++ b/kallithea/templates/compare/compare_cs.html Sun Jul 02 21:14:37 2017 +0200 @@ -65,7 +65,7 @@ ${cs.date} ${h.gravatar(h.email_or_none(cs.author), size=16)} - ${h.shorter(h.person(cs.author),22)} + ${h.person(cs.author)} ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id), class_='changeset_hash')}