style: update tools side icon

This commit is contained in:
XPoet 2022-09-26 22:33:29 +08:00
parent 29ab3c216e
commit c3b3058ab3
2 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
</li>
<li class="tools-item tool-expand-width flex-center">
<i class="fas fa-arrows-alt-h"></i>
<i class="fas fa-up-right-and-down-left-from-center"></i>
</li>
<li class="tools-item tool-dark-light-toggle flex-center">

View File

@ -135,13 +135,13 @@ KEEP.initUtils = () => {
KEEP.styleStatus.isExpandPageWidth = isExpand;
KEEP.setStyleStatus();
if (isExpand) {
iconDom.classList.remove('fa-arrows-alt-h');
iconDom.classList.add('fa-compress-arrows-alt');
iconDom.classList.remove('fa-up-right-and-down-left-from-center');
iconDom.classList.add('fa-down-left-and-up-right-to-center');
headerContentDom.style.maxWidth = expandMaxWidth;
mainContentDom.style.maxWidth = expandMaxWidth;
} else {
iconDom.classList.remove('fa-compress-arrows-alt');
iconDom.classList.add('fa-arrows-alt-h');
iconDom.classList.remove('fa-down-left-and-up-right-to-center');
iconDom.classList.add('fa-up-right-and-down-left-from-center');
headerContentDom.style.maxWidth = headerMaxWidth;
mainContentDom.style.maxWidth = defaultMaxWidth;
}