This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new d142d30 Fix an alignment issue with the committee logos
d142d30 is described below
commit d142d308148cd92542b334aa9a19e1a5ca52eaa4
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu May 29 19:30:18 2025 +0100
Fix an alignment issue with the committee logos
---
atr/templates/committee-directory.html | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/atr/templates/committee-directory.html
b/atr/templates/committee-directory.html
index f6e91eb..1a4c568 100644
--- a/atr/templates/committee-directory.html
+++ b/atr/templates/committee-directory.html
@@ -12,10 +12,18 @@
{{ super() }}
<style>
.page-logo {
- height: 48px;
+ max-height: 100%;
width: auto;
object-fit: contain;
}
+
+ .page-logo-container {
+ height: 48px;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
</style>
{% endblock stylesheets %}
@@ -70,16 +78,19 @@
<h3 class="card-title fs-4 mb-0">{{ committee.display_name
}}</h3>
</div>
<div class="col-5 col-lg-4 text-center">
- {% if committee.name == "incubator" or
committee.name.startswith("incubator-") %}
- <img
src="https://www.apache.org/logos/res/incubator/default.png"
- alt="Apache Incubator Logo"
- class="page-logo" />
- {% else %}
- <img src="https://www.apache.org/logos/res/{{ committee.name
}}/default.png"
- alt="{{ committee.display_name }} Logo"
- class="page-logo"
- onerror="this.style.display='none';" />
- {% endif %}
+ <div class="page-logo-container">
+ {% if (committee.name == "incubator") or
committee.name.startswith("incubator-") %}
+ <img
src="https://www.apache.org/logos/res/incubator/default.png"
+ alt=""
+ class="page-logo"
+ onerror="this.style.display='none';" />
+ {% else %}
+ <img src="https://www.apache.org/logos/res/{{
committee.name }}/default.png"
+ alt=""
+ class="page-logo"
+ onerror="this.style.display='none';" />
+ {% endif %}
+ </div>
</div>
</div>
<div class="row g-3">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]