From 91a12a798c354f9f18c5a936b9027f7540d2d14d Mon Sep 17 00:00:00 2001 From: Prabhjyot Date: Thu, 21 Oct 2021 02:08:13 +0530 Subject: [PATCH] [Minor] Fix padding on home page (#19025) * [Minor] fix padding on home page * fix lint * Move filters and pagination out from dags-table-wrap * - fix last row of a table - col span should be 10 instead of 9 * add bottom padding * Update airflow/www/static/css/dags.css Co-authored-by: Ryan Hamilton Co-authored-by: Ryan Hamilton --- airflow/www/static/css/dags.css | 8 +-- airflow/www/templates/airflow/dags.html | 68 ++++++++++++------------- 2 files changed, 39 insertions(+), 37 deletions(-) diff --git a/airflow/www/static/css/dags.css b/airflow/www/static/css/dags.css index 6d25949951f10..517a538f3948f 100644 --- a/airflow/www/static/css/dags.css +++ b/airflow/www/static/css/dags.css @@ -31,10 +31,12 @@ .dags-table-body { margin: 0 1px; overflow-x: auto; + padding-bottom: 34px; +} - /* This allows small dropdowns to overlap the table element */ - padding-bottom: 55px; - margin-bottom: -55px; +.no-x-padding { + padding-left: 0; + padding-right: 0; } .dags-table-more { diff --git a/airflow/www/templates/airflow/dags.html b/airflow/www/templates/airflow/dags.html index 5d5d1405f73f0..6f98d8ae92bf2 100644 --- a/airflow/www/templates/airflow/dags.html +++ b/airflow/www/templates/airflow/dags.html @@ -78,41 +78,41 @@ {% block content %}

{{ page_title }}

-
-
- -
-
-
- - {% if tags_filter|length > 0 %} - - {% endif %} -
-
-
-
-
-
- - - {% if search_query %} - - {% endif %} -
-
+
+ +
+
+
+ + {% if tags_filter|length > 0 %} + + {% endif %} +
+
+
+
+
+
+ + + {% if search_query %} + + {% endif %} +
+
+
+
+
@@ -141,7 +141,7 @@

{{ page_title }}

{% if dags|length == 0 %} - + {% endif %} {% for dag in dags %}
No results
No results