# HG changeset patch # User domruf # Date 2017-07-02 21:14:37 # 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 --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -1282,6 +1282,13 @@ h3.files_location { 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 @@ tr.out-of-range > td.mid .message > a { } #graph_content #changesets td { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; height: 31px; border-color: #cdcdcd; text-align: left; @@ -1458,10 +1462,6 @@ tr.out-of-range > td.mid .message > a { font-size: 0.85em; } -#graph_content tr .author { - width: 105px; -} - #graph_content tr .hash { width: 100px; font-size: 0.85em; diff --git a/kallithea/templates/changelog/changelog.html b/kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html +++ b/kallithea/templates/changelog/changelog.html @@ -96,7 +96,7 @@ ${self.repo_context_bar('changelog', c.f ${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 --git a/kallithea/templates/changeset/changeset_range.html b/kallithea/templates/changeset/changeset_range.html --- a/kallithea/templates/changeset/changeset_range.html +++ b/kallithea/templates/changeset/changeset_range.html @@ -36,7 +36,7 @@ ${self.repo_context_bar('changelog')} ${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 --git a/kallithea/templates/compare/compare_cs.html b/kallithea/templates/compare/compare_cs.html --- a/kallithea/templates/compare/compare_cs.html +++ b/kallithea/templates/compare/compare_cs.html @@ -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')}