diff --git a/src/HeadlessBlazor.Core/Utilities/DOM.cs b/src/HeadlessBlazor.Core/Utilities/DOM.cs index d2291d0..ddce8f8 100644 --- a/src/HeadlessBlazor.Core/Utilities/DOM.cs +++ b/src/HeadlessBlazor.Core/Utilities/DOM.cs @@ -7,9 +7,9 @@ public sealed class DOM(IJSRuntime js) : IAsyncDisposable { private readonly Lazy> _module = new(() => js.InvokeAsync("import", "./_content/HeadlessBlazor.Core/utils.js")); - public async ValueTask GetWindowDimensionsAsync() + public async ValueTask GetWindowDimensionsAsync() { - return await InvokeAsync("getWindowDimensions"); + return await InvokeAsync("getWindowDimensions"); } public async ValueTask GetBoundingClientRect(ElementReference element) diff --git a/src/HeadlessBlazor.Core/Utilities/Dimensions.cs b/src/HeadlessBlazor.Core/Utilities/Dimensions.cs new file mode 100644 index 0000000..73d2e6c --- /dev/null +++ b/src/HeadlessBlazor.Core/Utilities/Dimensions.cs @@ -0,0 +1,3 @@ +namespace HeadlessBlazor.Utilities; + +public sealed record Dimensions(double Height, double Width); \ No newline at end of file diff --git a/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs b/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs deleted file mode 100644 index 24a7668..0000000 --- a/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace HeadlessBlazor.Utilities; - -public sealed record WindowDimensions(double Height, double Width); \ No newline at end of file