Skip to content

Commit

Permalink
[Tabs] Remove height compensation (#3149)
Browse files Browse the repository at this point in the history
* fix(tabs): remove tab height 40px compensation

* fix(tabs): set fluent tab height to 100% when fluent tabs has a fixed height

---------

Co-authored-by: Vincent Baaij <[email protected]>
  • Loading branch information
denispaluca and vnbaaij authored Jan 14, 2025
1 parent dd35560 commit f12d37c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Components/Tabs/FluentTab.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public partial class FluentTab : FluentComponentBase

/// <summary />
protected string? StyleValue => new StyleBuilder(Style)
.AddStyle("height", $"calc({Owner?.Height} - 40px); overflow-y: auto", () => !string.IsNullOrEmpty(Owner?.Height))
.AddStyle("height", "100%", () => !string.IsNullOrEmpty(Owner?.Height))
.AddStyle("overflow-y", "auto", () => !string.IsNullOrEmpty(Owner?.Height))
.Build();

/// <summary />
Expand Down

0 comments on commit f12d37c

Please sign in to comment.