MudTable: Fix loading indicator visibility in mobile layout#12778
Merged
danielchalmers merged 4 commits intodevfrom Mar 2, 2026
Merged
MudTable: Fix loading indicator visibility in mobile layout#12778danielchalmers merged 4 commits intodevfrom
danielchalmers merged 4 commits intodevfrom
Conversation
Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix MudTable loading indicator in mobile view
Fix MudTable.Loading not visible in mobile (small-device) layout
Mar 1, 2026
danielchalmers
approved these changes
Mar 1, 2026
Member
Recording.2026-03-01.142606.mp4 |
versile2
reviewed
Mar 2, 2026
Contributor
versile2
left a comment
There was a problem hiding this comment.
I can dive in more if need be but probably don't need any additional css here just update the class layout in mobile view
…verride for .mud-table-loading-row from _table.scss. Kept the class-based markup fix from commit fc46c0e, so mobile visibility is handled via row class layout rather than new SCSS rules.
versile2
approved these changes
Mar 2, 2026
Contributor
versile2
left a comment
There was a problem hiding this comment.
Confirmed loading now displays on mobile.
This was referenced Mar 3, 2026
This was referenced Mar 4, 2026
Open
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.
MudTable'sLoadingprogress indicator was invisible when the table switched to its mobile card layout, regardless of breakpoint setting.Root causes
Two bugs in
MudTable.razor:else if (Loading)branch (tables withoutHeaderContent/Columns): loading<tr>hadclass="mud-table-row", which is explicitlydisplay: nonein the mobile CSS mixin — progress bar was always hidden.Normal branch (tables with
HeaderContent): loading<tr>had no class, so it received no block-level styling in the overridden mobile table layout — visually broken/invisible.Changes
MudTable.razor: Both loading<tr>elements now useclass="mud-table-loading-row"instead ofmud-table-row(or no class)._table.scss: Added.mud-table-loading-rowrule insidetable-display-smalldevicesmixin — renders the row and its<th>as full-widthblockelements in mobile view:TableTests.cs: AddedLoadingRowHasMudTableLoadingRowClasstest asserting the loading row carries the new class.Original prompt
MudTable.Loadingdoesn't work in mobile view #8039💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.