yaooqinn opened a new pull request, #54614:
URL: https://github.com/apache/spark/pull/54614

   ### What changes were proposed in this pull request?
   
   Replaces inline CSS styles with Bootstrap 5 utility classes across Spark Web 
UI Scala files, producing cleaner markup and smaller HTML output.
   
   **Conversions (10 files):**
   
   | Inline Style | BS5 Utility |
   |---|---|
   | `display: flex; align-items: center` | `d-flex align-items-center` |
   | `display: inline-block` / `inline` | `d-inline-block` / `d-inline` |
   | `vertical-align: bottom` / `middle` | `align-bottom` / `align-middle` |
   | `text-decoration: none` | `text-decoration-none` |
   | `white-space: nowrap` | `text-nowrap` |
   | `margin-right: 15px` | `me-3` |
   | `margin-bottom: 0` | `mb-0` |
   | `padding-right: 4px` | `pe-1` |
   | `overflow: auto; padding: 5px` | `overflow-auto p-1` |
   | `overflow: hidden; text-overflow: ellipsis` | `overflow-hidden 
text-truncate` |
   | `cursor: pointer` | `cursor-pointer` (new utility) |
   
   Styles with no BS5 equivalent (e.g., `width: 60px`, `height: 80vh`) are 
retained as inline styles.
   
   ### Why are the changes needed?
   
   Consistent use of BS5 utilities instead of inline styles aligns with the 
Bootstrap 5 migration (SPARK-55760). This makes the HTML cleaner, reduces 
inline style declarations, and makes visibility/layout inspectable via CSS 
classes.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Visual appearance is identical.
   
   ### How was this patch tested?
   
   - `scalastyle` passes
   - `UIUtilsSuite` (8 tests) passes
   - Compilation verified for core and streaming modules
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes, co-authored with GitHub Copilot.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to