Skip to content

Commit bf07c46

Browse files
committed
Improve and update the sample site
1 parent 798ff24 commit bf07c46

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

SampleApps/BlazorWasmApp/BlazorWasmApp.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
1313
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
1414
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
15-
<PackageReference Include="PublishSPAforGitHubPages.Build" Version="2.2.0" />
15+
<PackageReference Include="PublishSPAforGitHubPages.Build" Version="3.0.0" />
1616
<PackageReference Include="System.Text.Json" Version="8.0.4" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
2020
<!--<ProjectReference Include="..\..\SplitContainer\SplitContainer.csproj" />-->
21-
<PackageReference Include="Toolbelt.Blazor.SplitContainer" Version="2.0.0" />
21+
<PackageReference Include="Toolbelt.Blazor.SplitContainer" Version="2.0.1" />
2222
</ItemGroup>
2323

2424
</Project>

SampleApps/BlazorWasmApp/Example2.razor

+15-3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,31 @@
22

33
<h2>Nesting</h2>
44

5-
<SplitContainer TSize="int" Id="split-container-2" Orientation="SplitterOrientation.Vertical" Style="width:100%; height:400px;" FirstPaneSize="128" FirstPaneMinSize="80" SecondPaneMinSize="80">
5+
<SplitContainer TSize="int" Id="split-container-2" Orientation="SplitterOrientation.Vertical" Style="width:100%; height:400px;" FirstPaneSize="160" FirstPaneMinSize="80" SecondPaneMinSize="180">
6+
67
<FirstPane>
78
<h1>Blazor</h1>
89
</FirstPane>
910

1011
<SecondPane>
1112
<SplitContainer TSize="int" Orientation="SplitterOrientation.Horizontal" Style="width:100%; height:100%;" SecondPaneSize="128" FirstPaneMinSize="80" SecondPaneMinSize="80">
13+
1214
<FirstPane>
13-
<h1>Split</h1>
15+
<SplitContainer TSize="int" Orientation="SplitterOrientation.Vertical" Style="width:100%; height:100%;" FirstPaneSize="128" FirstPaneMinSize="80" SecondPaneMinSize="80">
16+
17+
<FirstPane>
18+
<h1>Split</h1>
19+
</FirstPane>
20+
21+
<SecondPane>
22+
<h1>Container</h1>
23+
</SecondPane>
24+
25+
</SplitContainer>
1426
</FirstPane>
1527

1628
<SecondPane>
17-
<h1>Container</h1>
29+
<h1>Component</h1>
1830
</SecondPane>
1931

2032
</SplitContainer>

SampleApps/BlazorWasmApp/Shared/Layout.razor.css

+12-8
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,23 @@ main {
3131
}
3232

3333
::deep h1 {
34-
margin: 0 20px;
34+
margin: 0;
35+
padding: 0 20px;
3536
white-space: nowrap;
3637
overflow: hidden;
3738
text-overflow: ellipsis;
39+
border: dashed 2px blueviolet;
40+
position: absolute;
41+
inset: 0;
42+
text-align: center;
3843
}
3944

45+
::deep h1::before {
46+
content: "";
47+
display: block;
48+
height: calc(50% - 0.8em);
49+
}
50+
4051
::deep .split-container {
4152
--splitter-bar-size: 14px;
4253
}
@@ -47,10 +58,3 @@ main {
4758
justify-content: center;
4859
align-items: center;
4960
}
50-
51-
::deep #split-container-1 .pane-of-split-container,
52-
::deep #split-container-2 .pane-of-split-container:first-of-type,
53-
::deep #split-container-2 .pane-of-split-container:last-of-type .pane-of-split-container:last-of-type,
54-
::deep #split-container-3 .pane-of-split-container {
55-
border: dashed 2px blueviolet;
56-
}

0 commit comments

Comments
 (0)