Skip to content

Commit 12f3c58

Browse files
authored
MudScrollbarTip (#375)
1 parent 9560247 commit 12f3c58

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

ComponentViewer.Docs/ComponentViewer.Docs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
<ItemGroup>
3030
<EmbeddedResource Include="Pages/Examples/**" />
3131
</ItemGroup>
32-
32+
3333
</Project>

ComponentViewer.Docs/Pages/Components/ScrollbarPage.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@using ComponentViewer.Docs.Pages.Examples
33

44
<ExamplePage Title="MudScrollbar">
5+
<ExampleCard ExampleName="ScrollbarExampleIntro" Title="Info & Warning" Description="">
6+
<ScrollbarExampleIntro />
7+
</ExampleCard>
8+
59
<ExampleCard ExampleName="ScrollbarExample1" Title="Playground" Description="MudScrollbar is a scrollbar shaper component. No need to wrap an element, use Selector parameter to communication.">
610
<ScrollbarExample1 />
711
</ExampleCard>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@using Microsoft.AspNetCore.Components
2+
@using MudBlazor.Extensions
3+
4+
<MudGrid>
5+
<MudAlert Class="mud-width-full" Severity="Severity.Warning">If MudScrollbar doesn't work, set <CodeBlock>DefaultScrollbar="true"</CodeBlock> from MudThemeProvider.</MudAlert>
6+
</MudGrid>

ComponentViewer.Docs/Shared/MainLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108
</style>
109109

110-
<MudThemeProvider Theme="_theme" @bind-IsDarkMode="IsDarkMode" />
110+
<MudThemeProvider Theme="_theme" @bind-IsDarkMode="IsDarkMode" DefaultScrollbar="true" />
111111
<MudDialogProvider />
112112
<MudSnackbarProvider />
113113

0 commit comments

Comments
 (0)