Skip to content

Commit

Permalink
fix(gpth-settings): Decrease gpth-settings width and clear console …
Browse files Browse the repository at this point in the history
…logs

- Clear console warnings and errors
- Decrease the width of the GPT settings

Changes summary:
- Cleaned up console output:
  - Removed unnecessary warnings and errors from the console, improving development efficiency.
- Adjusted settings width:
  - Reduced the width of the GPT settings to improve layout and usability.
  • Loading branch information
itsmartashub committed Sep 16, 2024
1 parent e68747e commit 5d75026
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/js/app/floatingBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ function hideFloatingOptions(e) {
}
}
function closeFloatingOptions() {
console.log('closeFloatingOptions: ', { isOptionsShown })
// console.log('closeFloatingOptions: ', { isOptionsShown })
isOptionsShown = false
elements.floatingOptions.classList.remove('gpth__options--shown')
document.body.removeEventListener('click', hideFloatingOptions)
console.log('closeFloatingOptions: ', { isOptionsShown })
// console.log('closeFloatingOptions: ', { isOptionsShown })
}
function decreaseFloatingBtnSize() {
setTimeout(() => elements.floatingBtn.classList.add('gpth__floating--small'), 3000)
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/themeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function setTheme(theme, isOLED = false) {
}

function applyTheme(theme, isOLED) {
console.log('Applying theme:', theme, 'OLED:', isOLED)
// console.log('Applying theme:', theme, 'OLED:', isOLED)
const htmlTag = document.documentElement
let appliedTheme = theme

Expand Down
2 changes: 1 addition & 1 deletion src/sass/gpthemes/_gpth-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
border-radius: var(--br-dialog);
top: var(--top);
right: var(--right);
width: clamp(26rem, 25vw, 30rem);
width: clamp(24rem, 25vw, 30rem);
max-height: 70vh;
transform: translateX(calc(100% + 1.5rem)) !important;
z-index: calc(var(--z-modal) + 10);
Expand Down

0 comments on commit 5d75026

Please sign in to comment.