From 9a403817aa3b0792a39b4f5a0f5ecc6fdb21d73e Mon Sep 17 00:00:00 2001
From: Saurabh Kumar <theskumar@users.noreply.github.com>
Date: Thu, 28 Jul 2022 15:39:52 +0530
Subject: [PATCH] Fix css styling for input type radio/checkbox

---
 .../apply/funds/templates/funds/admin/parent_chooser.html  | 6 ++++++
 hypha/apply/users/templates/wagtailusers/users/edit.html   | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/hypha/apply/funds/templates/funds/admin/parent_chooser.html b/hypha/apply/funds/templates/funds/admin/parent_chooser.html
index 5bb8857fe..e8dbe2685 100644
--- a/hypha/apply/funds/templates/funds/admin/parent_chooser.html
+++ b/hypha/apply/funds/templates/funds/admin/parent_chooser.html
@@ -3,6 +3,12 @@
 
 {% block content %}
 <div>
+    <style>
+    {# fix for input field alignment #}
+    input[type=radio] {
+        vertical-align: middle;
+    }
+    </style>
     {% block header %}
         {% include "modeladmin/includes/header_with_breadcrumb.html" with title=view.get_page_title subtitle=view.get_page_subtitle icon=view.header_icon tabbed=True %}
     {% endblock %}
diff --git a/hypha/apply/users/templates/wagtailusers/users/edit.html b/hypha/apply/users/templates/wagtailusers/users/edit.html
index 6a8aa8d50..ca1f54537 100644
--- a/hypha/apply/users/templates/wagtailusers/users/edit.html
+++ b/hypha/apply/users/templates/wagtailusers/users/edit.html
@@ -9,6 +9,13 @@
     {% trans "Editing" as editing_str %}
     {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=user.get_username merged=1 tabbed=1 icon="user" %}
 
+    <style>
+        {# fix for checkbox alignment #}
+        input[type=checkbox] {
+            vertical-align: text-bottom;
+        }
+    </style>
+
     <div class="w-tabs" data-tabs>
         <div class="w-tabs__wrapper">
             <div role="tablist" class="w-tabs__list nice-padding">
-- 
GitLab