Skip to content

Commit e7525e6

Browse files
committed
style: #1183 Fix form field icon and flat picker l10n (atierant)
1 parent 4dc4256 commit e7525e6

22 files changed

+4017
-3799
lines changed

assets/js/flatpicker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import 'flatpickr';
22
import 'flatpickr/dist/flatpickr.css';
3+
import l10n from "flatpickr/dist/l10n";
34

45
flatpickr.defaultConfig.animate = window.navigator.userAgent.indexOf('MSIE') === -1;
5-
const locale = document.documentElement.getAttribute('lang') || 'en';
6-
const Locale = require(`flatpickr/dist/l10n/${locale}.js`).default[locale];
6+
let lang = document.documentElement.getAttribute('lang') || 'en';
7+
const Locale = l10n[`${lang}`] || l10n.default;
78
flatpickr.localize(Locale);
89
const configs = {
910
standard: {

assets/styles/app.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,3 +518,10 @@ body#blog_search .post-metadata {
518518
font-size: 16px;
519519
margin-bottom: 8px;
520520
}
521+
522+
.input-group {
523+
button.btn {
524+
padding-bottom: 0;
525+
padding-top: 0;
526+
}
527+
}

public/build/106.218afa2e.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

public/build/206.49950b4e.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/build/206.b003fa5f.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/323.832dd193.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/384.7392c8fa.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/384.abf828b0.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)