# HG changeset patch # User Mads Kiilerich # Date 2019-10-21 01:46:44 # Node ID 867963eba0646593aaaa6cd7e55aef170fd42965 # Parent 8c9ae802929a459ac91b030dbd1a24785c479a21 front-end: tweak display of select2 - both in settings and Summary Download options New version needs slightly different hacking ... diff --git a/kallithea/front-end/kallithea-select2.less b/kallithea/front-end/kallithea-select2.less --- a/kallithea/front-end/kallithea-select2.less +++ b/kallithea/front-end/kallithea-select2.less @@ -26,6 +26,12 @@ } } +.select2-chosen, +.select2-choice > span:first-child, +.select2-container .select2-choices .select2-search-field input { + padding: 0 12px; +} + // Style these like Bootstrap .dropdown-menu .branch-switcher-dropdown.select2-drop.select2-drop-active, .repo-switcher-dropdown.select2-drop.select2-drop-active { @@ -66,3 +72,7 @@ .select2-container.input-sm input { .input-sm; } + +.form-inline .select2-container.form-control { + display: inline-block; +} 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 @@ -104,7 +104,7 @@ ${self.repo_context_bar('summary')}
-
+
%if len(c.db_repo_scm_instance.revisions) == 0: ${_('There are no downloads yet')} %elif not c.enable_downloads: @@ -116,7 +116,7 @@ ${self.repo_context_bar('summary')} ${_('Download as zip')} - ${h.hidden('download_options')} + ${h.hidden('download_options', class_='form-control')}