diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor index d28df051369..4c373fdc0a1 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor @@ -37,7 +37,7 @@ } -
+
@YearString @MonthString @if (IsDateTimeMode) diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs index ce0de10e3f0..27a4b85a114 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs @@ -465,6 +465,10 @@ public bool AllowNull private bool IsDateTimeMode => ViewMode == DatePickerViewMode.DateTime && CurrentViewMode == DatePickerViewMode.DateTime; + private string? HeaderLabelString => CssBuilder.Default("d-flex align-items-center justify-content-center flex-fill") + .AddClass("picker-panel-header-bar", ViewMode == DatePickerViewMode.DateTime) + .Build(); + private readonly Dictionary> _monthDisabledDaysCache = []; /// diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.scss b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.scss index 46b222956a8..5e7c7235b51 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.scss +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.scss @@ -1,4 +1,4 @@ -.picker-panel { +.picker-panel { --bb-picker-panel-body-width: 320px; --bb-picker-hover-color: #409eff; --bb-picker-panel-side-width: 0; @@ -62,6 +62,12 @@ } } + .picker-panel-header-bar { + .picker-panel-header-label { + font-size: 14px; + } + } + .picker-panel-header-label { font-size: 16px; font-weight: 500;