Skip to content

Commit

Permalink
Merge branch 'changing-icons-to-svgs-sergio' of https://github.com/Se…
Browse files Browse the repository at this point in the history
…rgioCasCeb/playground into changing-icons-to-svgs-sergio
  • Loading branch information
SergioCasCeb committed Jan 10, 2024
2 parents a83c5a6 + be2a71c commit 2c946ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web-new/src/scripts/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ function collapseConsole() {
minMaxBtn.children[0].classList.add("fa-up-right-and-down-left-from-center")
minMaxBtn.addEventListener("click", () => {

if (minMaxBtn.children[0].classList.contains("collapse-arrows")) {
if (minMaxBtn.children[0].classList.contains("collapse-arrows")) {
mainContentElement.style.flex = "1 0"
consoleElement.style.flex = `0 39px`
minMaxBtn.children[0].classList.remove("collapse-arrows")
minMaxBtn.children[0].classList.add("expand-arrows")
minMaxBtn.children[0].children[0].setAttribute("d", "M344 0H488c13.3 0 24 10.7 24 24V168c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512H24c-13.3 0-24-10.7-24-24V344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z")
minMaxBtn.children[0].classList.remove("collapse-arrows")
minMaxBtn.children[0].classList.add("expand-arrows")
minMaxBtn.children[0].children[0].setAttribute("d", "M344 0H488c13.3 0 24 10.7 24 24V168c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512H24c-13.3 0-24-10.7-24-24V344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z")

textIcon.forEach(text => {
text.classList.remove("hiddenV")
Expand Down

0 comments on commit 2c946ab

Please sign in to comment.