You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sa...@apache.org on 2026/05/04 11:01:34 UTC

(spark) branch branch-4.2 updated: [SPARK-55810][UI] Fix missing spacing between table and pagination controls in Jobs and Stages page

This is an automated email from the ASF dual-hosted git repository.

sarutak pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.2 by this push:
     new c119d8dfe7fd [SPARK-55810][UI] Fix missing spacing between table and pagination controls in Jobs and Stages page
c119d8dfe7fd is described below

commit c119d8dfe7fde2636a5f73d6bc5f017ca83c32d5
Author: Adithya Ajith <4a...@gmail.com>
AuthorDate: Mon May 4 20:00:38 2026 +0900

    [SPARK-55810][UI] Fix missing spacing between table and pagination controls in Jobs and Stages page
    
    ### What changes were proposed in this pull request?
    This PR fixes a UI regression in the Spark Web UI (Jobs and Stages pages) where spacing between the data table and the pagination controls ("Page", "Jump to", "Show items") was missing ([SPARK-55810](https://issues.apache.org/jira/browse/SPARK-55810)).
    
    The issue was introduced during the Bootstrap upgrade in #54552, which caused the pagination controls to appear visually attached to the table. This change restores appropriate spacing between these elements to improve layout clarity and consistency.
    
    ### Why are the changes needed?
    Without proper spacing, the table and pagination controls appear cramped and visually misaligned, which negatively impacts readability and overall user experience in the Spark Web UI.
    
    This is a regression caused by the Bootstrap upgrade and should be fixed to maintain UI consistency.
    
    ### Does this PR introduce _any_ user-facing change?
    Yes.
    
    It improves the visual layout of the Jobs and Stages pages in the Spark Web UI by restoring proper spacing between the table and pagination controls.
    
    ### How was this patch tested?
    
    1. Built Spark locally and ran spark-shell
    2. Opened the Spark Web UI and navigated to the "Jobs" and "Stages" tabs
    3. Verified that spacing between the table and pagination controls is correctly applied
    4. Compared behavior before and after the fix to confirm the issue is resolved
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    ### Screenshots
    
    | Stages page before the fix | Stages page after the fix |
    |---------------|--------------|
    | <img width="1512" height="674" alt="Screenshot 2026-05-04 at 2 22 16 PM" src="https://github.com/user-attachments/assets/5d8824d3-0fb9-475f-a739-60bdc36db37d" /> | <img width="1509" height="720" alt="Screenshot 2026-05-01 at 9 28 42 PM" src="https://github.com/user-attachments/assets/e3c0928c-ba43-4a74-aeaf-4d4e93f60ef9" /> |
    
    | Jobs page before the fix | Jobs page after the fix |
    |--------------|------------|
    | <img src="https://github.com/user-attachments/assets/d70cd94f-d52a-485e-b474-20c1777db3c6" width="100%"/> | <img src="https://github.com/user-attachments/assets/1c242b55-d62a-46f0-8bdb-64abb0ca785e" width="100%"/> |
    | <img src="https://github.com/user-attachments/assets/5574d44d-722e-403f-ac73-3db69f495655" width="100%"/> | <img src="https://github.com/user-attachments/assets/20015117-1f5d-44ce-b4c1-07a45c640409" width="100%"/> |
    
    Closes #55626 from XdithyX/master.
    
    Authored-by: Adithya Ajith <4a...@gmail.com>
    Signed-off-by: Kousuke Saruta <sa...@apache.org>
    (cherry picked from commit 786687291a5240770a24253a5024435fb54573aa)
    Signed-off-by: Kousuke Saruta <sa...@apache.org>
---
 core/src/main/scala/org/apache/spark/ui/PagedTable.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/scala/org/apache/spark/ui/PagedTable.scala b/core/src/main/scala/org/apache/spark/ui/PagedTable.scala
index 847d3ffff630..78e137f53355 100644
--- a/core/src/main/scala/org/apache/spark/ui/PagedTable.scala
+++ b/core/src/main/scala/org/apache/spark/ui/PagedTable.scala
@@ -218,7 +218,7 @@ private[spark] trait PagedTable[T] {
       }
     }
 
-    <div class="d-flex justify-content-between align-items-center">
+    <div class="d-flex justify-content-between align-items-center mb-3">
       <div class="d-flex align-items-center">
         <span class="pe-1">Page: </span>
         <ul class="pagination mb-0">


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org