[SPARK-55782][UI] Replace CSS float right with Bootstrap 5 float-end utility#54615
Open
yaooqinn wants to merge 2 commits intoapache:masterfrom
Open
[SPARK-55782][UI] Replace CSS float right with Bootstrap 5 float-end utility#54615yaooqinn wants to merge 2 commits intoapache:masterfrom
yaooqinn wants to merge 2 commits intoapache:masterfrom
Conversation
Replace inline CSS styles with Bootstrap 5 utility classes across Spark Web UI Scala files. **Conversions:** - `display: flex; align-items: center` → `d-flex align-items-center` - `display: inline-block` / `display: 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 in webui.css) **Files changed (10):** - UIUtils.scala, PagedTable.scala, StagePage.scala, DriverLogPage.scala - ExecutorThreadDumpPage.scala, MasterPage.scala, 3 LogPage variants - webui.css (added cursor-pointer utility) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace float: right in webui.css with Bootstrap 5 float-end utility class. - Removed float: right from a.link and span.expand-details CSS rules - Added float-end class to 6 HTML elements across MasterPage, AllJobsPage, StageTable, UIUtils Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dongjoon-hyun
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Replaces 2
float: rightCSS declarations inwebui.csswith Bootstrap 5float-endutility class on the corresponding HTML elements.CSS changes:
a.link: removedfloat: rightspan.expand-details: removedfloat: rightScala changes (4 files, 6 elements):
MasterPage.scala: 2 link anchors addedfloat-endAllJobsPage.scala: 1 link anchor addedfloat-endStageTable.scala: 1 link anchor + 1 expand-details span addedfloat-endUIUtils.scala: 1 expand-details span addedfloat-endWhy are the changes needed?
Aligns with Bootstrap 5 conventions — using utility classes instead of custom CSS for layout. Part of SPARK-55760 (Spark Web UI Modernization).
Does this PR introduce any user-facing change?
No. Visual appearance is identical.
How was this patch tested?
Compilation verified.
float-endproduces the samefloat: right !importantbehavior as the removed CSS rules.Was this patch authored or co-authored using generative AI tooling?
Yes, co-authored with GitHub Copilot.