This commit is contained in:
Mirco Wittrien 2021-03-15 11:04:54 +01:00
parent eb1ed68960
commit 22112b691c
2 changed files with 8 additions and 6 deletions

View File

@ -5673,7 +5673,7 @@ module.exports = (_ => {
} }
render() { render() {
let input = this, preview; let input = this, preview;
return BDFDB.ReactUtils.createElement("div", { return BDFDB.ReactUtils.createElement("div", BDFDB.ObjectUtils.exclude(Object.assign({}, this.props, {
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.dateinputwrapper, this.props.className), className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.dateinputwrapper, this.props.className),
children: [ children: [
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SettingsLabel, { BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SettingsLabel, {
@ -5754,7 +5754,7 @@ module.exports = (_ => {
children: [ children: [
input.props.prefix && BDFDB.ReactUtils.createElement("div", { input.props.prefix && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.dateinputpreviewprefix, className: BDFDB.disCN.dateinputpreviewprefix,
children: input.props.prefix children: typeof input.props.prefix == "function" ? input.props.prefix(input) : input.props.prefix,
}), }),
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TextScroller, { BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TextScroller, {
children: InternalComponents.LibraryComponents.DateInput.format({ children: InternalComponents.LibraryComponents.DateInput.format({
@ -5770,7 +5770,7 @@ module.exports = (_ => {
] ]
}) })
] ]
}); }), "onChange", "label", "customString", "dateString", "timeString", "prefix"));
} }
}; };
InternalComponents.LibraryComponents.DateInput.getDefaultString = function () { InternalComponents.LibraryComponents.DateInput.getDefaultString = function () {

View File

@ -654,7 +654,7 @@ img:not([src]), img[src=""], img[src="null"] {
} }
[REPLACE_CLASS_dateinputinner] { [REPLACE_CLASS_dateinputinner] {
flex: 1 1 auto; flex: 1 1 auto;
color: rgb(--header-primary); color: var(--header-primary);
max-width: calc(100% - 150px); max-width: calc(100% - 150px);
} }
[REPLACE_CLASS_dateinputcontrols] { [REPLACE_CLASS_dateinputcontrols] {
@ -663,8 +663,10 @@ img:not([src]), img[src=""], img[src="null"] {
margin-bottom: 8px; margin-bottom: 8px;
} }
[REPLACE_CLASS_dateinputpreview] { [REPLACE_CLASS_dateinputpreview] {
color: rgb(--header-primary); display: flex;
font-weight: 500; align-items: center;
color: var(--header-primary);
font-weight: normal;
} }
[REPLACE_CLASS_dateinputpreviewprefix] { [REPLACE_CLASS_dateinputpreviewprefix] {
margin-right: 6px; margin-right: 6px;