+18
-1
lines changedFilter options
+18
-1
lines changed Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1
1
// BCalendar custom styles
2
2
3
3
.b-calendar {
4
+
.b-calendar-inner {
5
+
// Prevent calendar from going below this width
6
+
min-width: 250px;
7
+
}
8
+
4
9
output.readonly {
5
10
background-color: $input-disabled-bg;
6
11
opacity: 1;
Original file line number Diff line number Diff line change
@@ -855,7 +855,7 @@ export const BCalendar = Vue.extend({
855
855
'small',
856
856
{
857
857
key: idx,
858
-
staticClass: 'col',
858
+
staticClass: 'col text-truncate',
859
859
class: { 'text-muted': this.disabled },
860
860
attrs: {
861
861
title: d.label === d.text ? null : d.label,
@@ -997,6 +997,7 @@ export const BCalendar = Vue.extend({
997
997
const $widget = h(
998
998
'div',
999
999
{
1000
+
staticClass: 'b-calendar-inner',
1000
1001
class: this.block ? 'd-block' : 'd-inline-block',
1001
1002
style: this.block ? {} : { width: this.width },
1002
1003
attrs: {
Original file line number Diff line number Diff line change
@@ -102,6 +102,11 @@ const propsMixin = {
102
102
type: String,
103
103
default: null
104
104
},
105
+
calendarWidth: {
106
+
// Width of the calendar dropdown
107
+
type: String,
108
+
default: '270px'
109
+
},
105
110
selectedVariant: {
106
111
// Variant color to use for the selected date
107
112
type: String,
@@ -260,6 +265,7 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({
260
265
locale: self.locale,
261
266
startWeekday: self.startWeekday,
262
267
direction: self.direction,
268
+
width: self.calendarWidth,
263
269
dateDisabledFn: self.dateDisabledFn,
264
270
selectedVariant: self.selectedVariant,
265
271
todayVariant: self.todayVariant,
Original file line number Diff line number Diff line change
@@ -64,6 +64,11 @@
64
64
"prop": "direction",
65
65
"description": "Set to the string 'rtl' or 'ltr' to explicitly force the calendar to render in right-to-left or left-ro-right (respectively) mode. Defaults to the resolved locale's directionality"
66
66
},
67
+
{
68
+
"prop": "calendarWidth",
69
+
"version": "2.6.0",
70
+
"description": "Sets the width of the calendar dropdown (see the `b-calendar` prop `width` for details)"
71
+
},
67
72
{
68
73
"prop": "min",
69
74
"description": "The minimum date the calendar will show"
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4