mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: bootstap browser screen detect
This commit is contained in:
parent
41de30c432
commit
b1484f66f7
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/app.js.map
vendored
2
dist/js/app.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
||||
"version": "1.7.4",
|
||||
"version": "1.7.5",
|
||||
"author": "Tony Air <tony@twma.pro>",
|
||||
"license": "MIT",
|
||||
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||
|
@ -253,12 +253,14 @@ const MainUI = (($) => {
|
||||
|
||||
static detectBootstrapScreenSize() {
|
||||
const $el = $('<div class="env-test"></div>');
|
||||
const envs = [...Consts.ENVS];
|
||||
|
||||
let envs = [...Consts.ENVS];
|
||||
$Body.append($el);
|
||||
let curEnv = envs.shift();
|
||||
|
||||
for (const env of envs.reverse()) {
|
||||
let curEnv = envs.shift();
|
||||
envs = envs.reverse();
|
||||
|
||||
for (let i = 0; i < envs.length; ++i) {
|
||||
const env = envs[i];
|
||||
$el.addClass(`d-${env}-none`);
|
||||
if ($el.is(':hidden')) {
|
||||
curEnv = env;
|
||||
|
Loading…
Reference in New Issue
Block a user