Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Tweak DataGrid classes etc based on tests with Aspire
  • Loading branch information
vnbaaij committed Dec 6, 2024
commit f0bdd4764b3db1cdf1bfe6ba350709567a129929
2 changes: 1 addition & 1 deletion src/Core/Components/DataGrid/FluentDataGrid.razor
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
headerType = DataGridRowType.StickyHeader;
}
<thead>
<FluentDataGridRow RowType="@headerType" TGridItem="TGridItem" row-type="@headerType.ToAttributeValue()">
<FluentDataGridRow RowType="@headerType" TGridItem="TGridItem" >
@_renderColumnHeaders
</FluentDataGridRow>
</thead>
Expand Down
1 change: 1 addition & 0 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
border-collapse: collapse;
align-items: center;
height: max-content;
margin-bottom: 0px;
}

thead,
Expand Down
1 change: 1 addition & 0 deletions src/Core/Components/DataGrid/FluentDataGridRow.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
style="@StyleValue"
data-row-index=@RowIndex
role="row"
row-type="@RowType.ToAttributeValue()"
@onkeydown="@(e => HandleOnRowKeyDownAsync(RowId, e))"
@onclick="@(e => HandleOnRowClickAsync(RowId))"
@ondblclick="@(e => HandleOnRowDoubleClickAsync(RowId))"
Expand Down
3 changes: 2 additions & 1 deletion src/Core/Components/DataGrid/FluentDataGridRow.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public partial class FluentDataGridRow<TGridItem> : FluentComponentBase, IHandle
/// </summary>
protected FluentDataGrid<TGridItem> Grid => InternalGridContext.Grid;

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

Expand Down
Loading