From 50e81e5a322ed9eed4717849bf185ae460f92a21 Mon Sep 17 00:00:00 2001 From: Argo-AscioTech Date: Sun, 17 Dec 2023 18:49:14 +0800 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20Body=20?= =?UTF-8?q?=E5=86=85=E8=BE=B9=E8=B7=9D=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Drawer/Drawer.razor.scss | 2 ++ src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss | 1 + 2 files changed, 3 insertions(+) diff --git a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.scss b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.scss index 6af831e7523..42d616be586 100644 --- a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.scss +++ b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.scss @@ -2,6 +2,7 @@ --bb-drawer-bg: var(--bs-body-bg); --bb-drawer-zindex: #{$bb-drawer-zindex}; --bb-drawer-body-shadow: #{$bb-drawer-body-shadow}; + --bb-drawer-body-padding: #{$bb-drawer-body-padding}; --bb-drawer-bar-bg: #{$bb-drawer-bar-bg}; --bb-drawer-bar-hover-color: #{$bb-drawer-bar-hover-color}; --bb-drawer-bar-drag-color: #{$bb-drawer-bar-drag-color}; @@ -38,6 +39,7 @@ z-index: 2; pointer-events: auto; display: flex; + padding: var(--bb-drawer-padding); .drawer-content { overflow: auto; diff --git a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss index b3e530aa88c..2be9263e9cf 100644 --- a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss +++ b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss @@ -234,6 +234,7 @@ $bb-divider-text-padding: 0 20px; // Drawer $bb-drawer-zindex: 1050; $bb-drawer-body-shadow: 0 8px 10px -5px rgba(0,0,0,.2), 0 16px 24px 2px rgba(0,0,0,.14), 0 6px 30px 5px rgba(0,0,0,.12); +$bb-drawer-body-padding: 1rem; $bb-drawer-bar-bg: #d0d7de; $bb-drawer-bar-hover-color: #409eff; $bb-drawer-bar-drag-color: #0969da; From 50896e202ffa290f490cdba24f669ce55cc88b97 Mon Sep 17 00:00:00 2001 From: Argo-AscioTech Date: Sun, 17 Dec 2023 18:49:25 +0800 Subject: [PATCH 2/5] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=20Dialogs=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Dialogs.razor | 127 ++++++++++-------- 1 file changed, 69 insertions(+), 58 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor index 9baab79e5c4..e4bb7ae41a2 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor @@ -6,14 +6,14 @@

@Localizer["Tip1"]:

-

@((MarkupString)Localizer["Tip2"].Value)

-
@@inject DialogService DialogService
-
[Inject]
+

@((MarkupString)Localizer["Tip2"].Value)

+
@@inject DialogService DialogService
+
[Inject]
 [NotNull]
 private DialogService? DialogService { get; set; }
 
-

@((MarkupString)Localizer["Tip3"].Value)

-
var op = new DialogOption()
+

@((MarkupString)Localizer["Tip3"].Value)

+
var op = new DialogOption()
 {
     Title = @Localizer["DialogTitle"],
     ShowFooter = false,
@@ -24,8 +24,8 @@ op.Component = BootstrapDynamicComponent.CreateComponent<DataDialogComponent&
     [nameof(DataDialogComponent.OnCloseAsync)] = new Action(() => op.CloseDialogAsync())
 });
 await DialogService.Show(op);
-

@((MarkupString)Localizer["Tip4"].Value)

-
[CascadingParameter]
+

@((MarkupString)Localizer["Tip4"].Value)

+
[CascadingParameter]
 private Func<Task>? OnCloseAsync { get; set; }
 
 private async Task OnClick()
@@ -36,13 +36,13 @@ private async Task OnClick()
     }
 }
 
-

@((MarkupString)Localizer["Tip5"].Value)

+

@((MarkupString)Localizer["Tip5"].Value)

<DialogCloseButton />
-

@((MarkupString)Localizer["KeyboardTip"].Value)

+
@((MarkupString)Localizer["KeyboardTip"].Value)
-
-

@((MarkupString)Localizer["BodyContextTip"].Value)

+
@((MarkupString)Localizer["BodyContextTip"].Value)
@@ -92,67 +92,76 @@ private async Task OnClick() -
@((MarkupString)Localizer["CloseDialogByCodeTip"].Value)
+
@((MarkupString)Localizer["CloseDialogByCodeTip"].Value)
-
@((MarkupString)Localizer["DisableHeaderCloseButtonTip"].Value)
+
@((MarkupString)Localizer["DisableHeaderCloseButtonTip"].Value)
-
@Localizer["MultipleDialogTip1"]
-
    -
  • @Localizer["MultipleDialogTip2"]
  • -
  • @((MarkupString)Localizer["MultipleDialogTip3"].Value)
  • -
  • @Localizer["MultipleDialogTip4"]
  • -
  • @((MarkupString)Localizer["MultipleDialogTip5"].Value)
  • -
-
@((MarkupString)Localizer["MultipleDialogDesc"].Value)
+
+
@Localizer["MultipleDialogTip1"]
+
    +
  • @Localizer["MultipleDialogTip2"]
  • +
  • @((MarkupString)Localizer["MultipleDialogTip3"].Value)
  • +
  • @Localizer["MultipleDialogTip4"]
  • +
  • @((MarkupString)Localizer["MultipleDialogTip5"].Value)
  • +
+
@((MarkupString)Localizer["MultipleDialogDesc"].Value)
+
-
@Localizer["ModalDialogTip1"]
-
    -
  • @Localizer["ModalDialogTip2"]
  • -
  • @((MarkupString)Localizer["ModalDialogTip3"].Value)
  • -
  • @((MarkupString)Localizer["ModalDialogTip4"].Value)
  • -
  • @Localizer["ModalDialogTip5"]
  • -
+
+
@Localizer["ModalDialogTip1"]
+
    +
  • @Localizer["ModalDialogTip2"]
  • +
  • @((MarkupString)Localizer["ModalDialogTip3"].Value)
  • +
  • @((MarkupString)Localizer["ModalDialogTip4"].Value)
  • +
  • @Localizer["ModalDialogTip5"]
  • +
+
-
@Localizer["EditDialogTip1"]
-
    -
  • @Localizer["EditDialogTip2"]
  • -
  • @((MarkupString)Localizer["EditDialogTip3"].Value)
  • -
  • @((MarkupString)Localizer["EditDialogTip4"].Value)
  • -
+
+
@Localizer["EditDialogTip1"]
+
    +
  • @Localizer["EditDialogTip2"]
  • +
  • @((MarkupString)Localizer["EditDialogTip3"].Value)
  • +
  • @((MarkupString)Localizer["EditDialogTip4"].Value)
  • +
+
-
@Localizer["SearchDialogTip1"]
-
    -
  • @Localizer["SearchDialogTip2"]
  • -
  • @((MarkupString)Localizer["SearchDialogTip3"].Value)
  • -
  • @((MarkupString)Localizer["SearchDialogTip4"].Value)
  • -
+
+
@Localizer["SearchDialogTip1"]
+
    +
  • @Localizer["SearchDialogTip2"]
  • +
  • @((MarkupString)Localizer["SearchDialogTip3"].Value)
  • +
  • @((MarkupString)Localizer["SearchDialogTip4"].Value)
  • +
+
-
@Localizer["SaveDialogTip1"]
-
    -
  • @Localizer["SaveDialogTip2"]
  • -
  • @((MarkupString)Localizer["SaveDialogTip3"].Value)
  • -
- +
+
@Localizer["SaveDialogTip1"]
+
    +
  • @Localizer["SaveDialogTip2"]
  • +
  • @((MarkupString)Localizer["SaveDialogTip3"].Value)
  • +
+
@@ -174,17 +183,19 @@ private async Task OnClick() -
@Localizer["EmailTip1"]
-
    -
  • @((MarkupString)Localizer["EmailTip2"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip3"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip4"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip5"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip6"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip7"].Value)
  • -
  • @((MarkupString)Localizer["EmailTip8"].Value)
  • -
- +
+
@Localizer["EmailTip1"]
+
    +
  • @((MarkupString)Localizer["EmailTip2"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip3"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip4"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip5"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip6"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip7"].Value)
  • +
  • @((MarkupString)Localizer["EmailTip8"].Value)
  • +
+ +