Skip to content

Commit

Permalink
Process review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Dec 19, 2024
1 parent 0f87d0c commit 722af80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,8 @@ private string AriaSortValue(ColumnBase<TGridItem> column)

private string? GridClass()
{
return new CssBuilder("fluent-data-grid")
.AddClass(Class)
return new CssBuilder(Class)
.AddClass("fluent-data-grid")
.AddClass("auto-fit", AutoFit)
.AddClass("loading", _pendingDataLoadCancellationTokenSource is not null)
.Build();
Expand Down Expand Up @@ -877,7 +877,7 @@ private void LoadStateFromQueryString(string queryString)
var query = System.Web.HttpUtility.ParseQueryString(queryString);
if (query.AllKeys.Contains($"{SaveStatePrefix}orderby"))
{
var orderBy = query[$"{SaveStatePrefix}orderby"]!.Split(' ',2);
var orderBy = query[$"{SaveStatePrefix}orderby"]!.Split(' ', 2);
var title = orderBy[0];

var column = _columns.FirstOrDefault(c => c.Title == title);
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/DataGrid/FluentDataGridRow.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public partial class FluentDataGridRow<TGridItem> : FluentComponentBase, IHandle
/// </summary>
protected FluentDataGrid<TGridItem> Grid => InternalGridContext.Grid;

protected string? ClassValue => new CssBuilder("fluent-data-grid-row")
.AddClass(Class)
protected string? ClassValue => new CssBuilder(Class)
.AddClass("fluent-data-grid-row")
.AddClass("hover", when: Grid.ShowHover)
.Build();

Expand Down

0 comments on commit 722af80

Please sign in to comment.