|
1 | | -@page "/circle" |
| 1 | +@page "/circle" |
2 | 2 | @inject IStringLocalizer<Circles> Localizer |
3 | 3 |
|
4 | 4 | <h3>@Localizer["Title"]</h3> |
|
12 | 12 |
|
13 | 13 | <DemoBlock Title="@Localizer["BasicUsageTitle"]" Introduction="@Localizer["BasicUsageIntro"]" Name="Normal"> |
14 | 14 | <Circle Value="@_circleValue" /> |
15 | | - <div class="mt-3"> |
16 | | - <div class="btn-group"> |
17 | | - <button class="btn btn-primary" @onclick="e => Add(10)"> |
18 | | - <i class="fa-solid fa-plus"></i> |
19 | | - <span>@Localizer["IncreaseSpan"] 10</span> |
20 | | - </button> |
21 | | - <button class="btn btn-info" @onclick="e => Add(-10)"> |
22 | | - <i class="fa-solid fa-minus"></i> |
23 | | - <span>@Localizer["DecreaseSpan"] 10</span> |
24 | | - </button> |
25 | | - </div> |
26 | | - </div> |
| 15 | + <section ignore class="btn-group mt-3 d-block"> |
| 16 | + <button class="btn btn-primary" @onclick="e => Add(10)"> |
| 17 | + <i class="fa-solid fa-plus"></i> |
| 18 | + <span>@Localizer["IncreaseSpan"] 10</span> |
| 19 | + </button> |
| 20 | + <button class="btn btn-info" @onclick="e => Add(-10)"> |
| 21 | + <i class="fa-solid fa-minus"></i> |
| 22 | + <span>@Localizer["DecreaseSpan"] 10</span> |
| 23 | + </button> |
| 24 | + </section> |
27 | 25 | </DemoBlock> |
28 | 26 |
|
29 | 27 | <DemoBlock Title="@Localizer["ColorTitle"]" Introduction="@Localizer["ColorIntro"]" Name="Color"> |
30 | | - <div class="d-flex justify-content-between"> |
| 28 | + <div class="circle-group"> |
31 | 29 | <Circle Value="10" Color="Color.Primary" /> |
32 | 30 | <Circle Value="20" Color="Color.Success" /> |
33 | 31 | <Circle Value="30" Color="Color.Info" /> |
|
39 | 37 | </DemoBlock> |
40 | 38 |
|
41 | 39 | <DemoBlock Title="@Localizer["StrokeWidthTitle"]" Introduction="@Localizer["StrokeWidthIntro"]" Name="StrokeWidth"> |
42 | | - <div class="d-flex justify-content-between"> |
43 | | - <Circle Value="80" Color="Color.Info" StrokeWidth="5" /> |
44 | | - </div> |
| 40 | + <Circle Value="80" Color="Color.Info" StrokeWidth="5" /> |
45 | 41 | </DemoBlock> |
46 | 42 |
|
47 | 43 | <DemoBlock Title="@Localizer["ChildContentTitle"]" Introduction="@Localizer["ChildContentIntro"]" Name="ChildContent"> |
|
0 commit comments