Skip to content

Commit

Permalink
Fix prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
studentofcoding committed Aug 11, 2023
1 parent 9c77891 commit 55e2a3a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,13 @@ function changeSVGViewBoxGoogle() {
// Check if the viewport is smaller than tablet
if (!mediaQuery.matches) {
Array.from(svgsGoogle).forEach((svg) => {

// Set the viewBox attribute to '0 0 13 13' to make the svg fit in the mobile view
svg.setAttribute('viewBox', '0 0 13 13');
svg.setAttribute('height', '13');
svg.setAttribute('width', '13');
});
} else {
Array.from(svgsGoogle).forEach((svg) => {

// Set the viewBox attribute to '0 0 20 20' to make the svg fit in the tablet-desktop view
svg.setAttribute('viewBox', '0 0 20 20');
svg.setAttribute('height', '16');
Expand Down

0 comments on commit 55e2a3a

Please sign in to comment.