Skip to content

Commit

Permalink
Оптимизации мобильной версии
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Aug 22, 2022
1 parent 5333596 commit 3b2502b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
22 changes: 17 additions & 5 deletions src/assets/VanillaLazyLoadAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,23 @@ public function registerAssetFiles($view)
parent::registerAssetFiles($view);

\Yii::$app->view->registerJs(<<<JS
sx.LazyLoadInstance = new LazyLoad({
//use_native: true,
//elements_selector: ".lazy"
// ... more custom settings?
});
sx.LazyLoadInstance = new LazyLoad({
//use_native: true,
//elements_selector: ".lazy"
// ... more custom settings?
});
$(document).on('pjax:complete', function (e) {
setTimeout(function() {
sx.LazyLoadInstance = new LazyLoad({});
}, 200);
});
$(document).on('ajaxComplete', function() {
setTimeout(function() {
sx.LazyLoadInstance = new LazyLoad({});
}, 200);
});
JS
);
}
Expand Down
5 changes: 2 additions & 3 deletions src/assets/src/css/unify-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ body {
}

.sx-category-list-small img {
/*max-width: 120px;
max-height: 100px;*/
height: 100px;
width: 100%;
aspect-ratio: 1;
}


Expand Down
2 changes: 1 addition & 1 deletion src/views/include/footer-copyright.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="float-md-right" style="text-align: center;">
<small>
<a href="https://skeeks.com/" style="text-align: center;" target="_blank" class="g-color-gray-dark-v4" title="<?= \Yii::t('skeeks/unify', 'Site development'); ?> - SkeekS.com">
<img src="<?= \skeeks\cms\themes\unify\assets\UnifyThemeAsset::getAssetUrl('img/skeeks/logo.png') ?>" alt="<?= \Yii::t('skeeks/unify', 'Site development'); ?> - SkeekS.com" width="30">
<img src="<?= \skeeks\cms\themes\unify\assets\UnifyThemeAsset::getAssetUrl('img/skeeks/logo.png') ?>" alt="<?= \Yii::t('skeeks/unify', 'Site development'); ?> - SkeekS.com" width="30" height="33">
<span><?= \Yii::t('skeeks/unify', 'Site development'); ?> - SkeekS.com</span>
</a>
</small>
Expand Down

0 comments on commit 3b2502b

Please sign in to comment.