Skip to content

Commit

Permalink
DataGrid: Fix paginator items alignment (#5814)
Browse files Browse the repository at this point in the history
* fixes AntDesignClassProvider.cs display on xs.

* keeps the items of paginator centered. #5375

---------

Co-authored-by: Mladen Macanovic <[email protected]>
  • Loading branch information
tesar-tech and stsrki authored Oct 31, 2024
1 parent 7c8cc4b commit 03e8efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public override string GridColumns( GridColumnsSize gridColumns, GridColumnsDefi

public override string Display( DisplayType displayType, DisplayDefinition displayDefinition )
{
var baseClass = displayDefinition.Breakpoint != Breakpoint.None
var baseClass = displayDefinition.Breakpoint != Breakpoint.None && displayDefinition.Breakpoint != Breakpoint.Mobile
? $"ant-display-{ToBreakpoint( displayDefinition.Breakpoint )}-{ToDisplayType( displayType )}"
: $"ant-display-{ToDisplayType( displayType )}";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
var pageNumberString = i.ToString();
var pageActive = pageNumber == PaginationContext.CurrentPage;

<PaginationItem Display="Blazorise.Display.None.OnMobile.InlineFlex.Row.OnTablet" Disabled="@(pageNumber == PaginationContext.CurrentPage)" Active="@pageActive">
<PaginationItem Flex="Blazorise.Flex.InlineFlex.OnTablet.JustifyContent.Center.OnTablet" Display="Blazorise.Display.None.OnMobile.InlineFlex.Row.OnTablet" Disabled="@(pageNumber == PaginationContext.CurrentPage)" Active="@pageActive">
<PaginationLink Page="@pageNumberString" Clicked="@OnPaginationItemClick">
@if ( PageButtonTemplate is not null )
{
Expand Down

0 comments on commit 03e8efa

Please sign in to comment.