Skip to content

Commit f0c926b

Browse files
committed
Re-included mobile transitions for font size slider + related query elems (fixes adamlui/ai-web-extensions#244) ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 15a04b1 commit f0c926b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.11.4
151+
// @version 2025.10.11.5
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -428,8 +428,7 @@
428428
appBottomPos() { app.div.style.bottom = `${ config.minimized ? 61 - app.div.offsetHeight : -7 }px` },
429429

430430
appStyle() { // used in toggle.animations() + update.scheme() + main's app init
431-
const isParticlizedDS = env.ui.app.scheme == 'dark' && !config.bgAnimationsDisabled,
432-
willNotZoom = config.fgAnimationsDisabled || env.browser.isMobile
431+
const isParticlizedDS = env.ui.app.scheme == 'dark' && !config.bgAnimationsDisabled
433432
modals.stylize() // update modal styles
434433
if (!app.styles?.isConnected) document.head.append(app.styles ||= dom.create.style())
435434
app.styles.textContent = (
@@ -571,7 +570,7 @@
571570
background-color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#4a4a4a' };
572571
--shadow: rgba(0,0,0,0.21) 1px 1px 9px 0 ;
573572
box-shadow: var(--shadow) ; -webkit-box-shadow: var(--shadow) ; -moz-box-shadow: var(--shadow) ;
574-
${ willNotZoom ? '' : `transition: var(--font-size-slider-thumb-transition)
573+
${ config.fgAnimationsDisabled ? '' : `transition: var(--font-size-slider-thumb-transition)
575574
-webkit-transition: var(--font-size-slider-thumb-transition) ;
576575
-moz-transition: var(--font-size-slider-thumb-transition) ;
577576
-o-transition: var(--font-size-slider-thumb-transition) ;
@@ -737,7 +736,7 @@
737736
border-radius: 0 13px 12px 13px ; flex: 0 0 auto ;
738737
--rq-shadow: 1px 4px 8px -6px rgba(169,169,169,0.75) ; box-shadow: var(--rq-shadow) ;
739738
-webkit-box-shadow: var(--rq-shadow) ; -moz-box-shadow: var(--rq-shadow) ;
740-
${ willNotZoom ? '' : `transition: var(--rq-transition) ;
739+
${ config.fgAnimationsDisabled ? '' : `transition: var(--rq-transition) ;
741740
-webkit-transition: var(--rq-transition) ; -moz-transition: var(--rq-transition) ;
742741
-o-transition: var(--rq-transition) ; -ms-transition: var(--rq-transition)` }}
743742
.${app.slug}-related-query:hover, .${app.slug}-related-query:focus {
@@ -2500,7 +2499,7 @@
25002499
--modal-btn-zoom: scale(1.055) ; --modal-btn-transition: transform 0.15s ease ;
25012500
--settings-li-transition: transform 0.1s ease ; /* for Settings entry hover-zoom */
25022501
--fg-transition: opacity 0.65s cubic-bezier(0.165,0.84,0.44,1), /* fade-in */
2503-
transform 0.55s cubic-bezier(0.165,0.84,0.44,1) !important ; /* move-in */
2502+
transform 0.55s cubic-bezier(0.165,0.84,0.44,1) !important ; /* move-in */
25042503
--bg-transition: background-color 0.25s ease !important } /* dim */`
25052504

25062505
// Main modal styles

0 commit comments

Comments
 (0)