# HG changeset patch # User Mads Kiilerich # Date 2017-06-11 15:02:09 # Node ID 7bca124ef278e0f0a9a719ad01caca9f6bb90d01 # Parent 30d61922f24eb144190052818c3fc6a24562f42b style: drop dynamic width of repo summary labels - it should be the same no matter if statistics is shown or not 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 @@ -842,13 +842,6 @@ div.panel div.panel-heading { margin: 0 20px 0 200px; } -#content div.panel div.form div.form-horizontal div.form-group > div.summary, -#content div.panel div.form div.form-horizontal div.form-group > div.summary-short { - margin: 0 20px 10px 110px; -} -#content div.panel div.form div.form-horizontal div.form-group > div.summary-short input { - margin: 0; -} #content div.panel div.form div.form-horizontal div.form-group > div.file { margin: 0 20px 0 200px; } @@ -1148,9 +1141,13 @@ div.form div.form-horizontal div.form-gr position: relative; } +#content div.panel div#summary-panel-body.form div.form-horizontal div.form-group > div { + margin: 0 20px 10px 110px; +} + #content div.panel #summary { margin-right: 200px; - min-height: 240px; + min-height: 220px; } ul#summary-menu-stats { diff --git a/kallithea/templates/summary/statistics.html b/kallithea/templates/summary/statistics.html --- a/kallithea/templates/summary/statistics.html +++ b/kallithea/templates/summary/statistics.html @@ -19,9 +19,6 @@ <%def name="main()"> ${self.repo_context_bar('summary')} - <% - summary = lambda n:{False:'summary-short'}.get(n) - %>
${self.breadcrumbs()} diff --git a/kallithea/templates/summary/summary.html b/kallithea/templates/summary/summary.html --- a/kallithea/templates/summary/summary.html +++ b/kallithea/templates/summary/summary.html @@ -56,9 +56,6 @@ <%def name="main()"> ${self.repo_context_bar('summary')} -<% -summary = lambda n:{False:'summary-short'}.get(n) -%>
${self.breadcrumbs()} @@ -83,12 +80,12 @@ summary = lambda n:{False:'summary-short
-
${h.urlify_text(c.db_repo.description, stylize=c.visual.stylify_metatags)}
+
${h.urlify_text(c.db_repo.description, stylize=c.visual.stylify_metatags)}
-
+
%if c.show_stats:
%else: @@ -102,7 +99,7 @@ summary = lambda n:{False:'summary-short
-
+
%if len(c.db_repo_scm_instance.revisions) == 0: ${_('There are no downloads yet')} %elif not c.enable_downloads: