Skip to content

Commit 6bc79fd

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/bravegpt]
1 parent 522e099 commit 6bc79fd

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

chatgpt/bravegpt/bravegpt.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-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.11.6
151+
// @version 2025.10.11.7
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -425,8 +425,7 @@
425425
appBottomPos() { app.div.style.bottom = `${ config.minimized ? 48 - app.div.offsetHeight : -32 }px` },
426426

427427
appStyle() { // used in toggle.animations() + update.scheme() + main's app init
428-
const isParticlizedDS = env.ui.app.scheme == 'dark' && !config.bgAnimationsDisabled,
429-
willNotZoom = config.fgAnimationsDisabled || env.browser.isMobile
428+
const isParticlizedDS = env.ui.app.scheme == 'dark' && !config.bgAnimationsDisabled
430429
modals.stylize() // update modal styles
431430
if (!app.styles?.isConnected) document.head.append(app.styles ||= dom.create.style())
432431
app.styles.textContent = (
@@ -574,7 +573,7 @@
574573
background-color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#4a4a4a' };
575574
--shadow: rgba(0,0,0,0.21) 1px 1px 9px 0 ;
576575
box-shadow: var(--shadow) ; -webkit-box-shadow: var(--shadow) ; -moz-box-shadow: var(--shadow) ;
577-
${ willNotZoom ? '' : `transition: var(--font-size-slider-thumb-transition)
576+
${ config.fgAnimationsDisabled ? '' : `transition: var(--font-size-slider-thumb-transition)
578577
-webkit-transition: var(--font-size-slider-thumb-transition) ;
579578
-moz-transition: var(--font-size-slider-thumb-transition) ;
580579
-o-transition: var(--font-size-slider-thumb-transition) ;
@@ -736,7 +735,7 @@
736735
border-radius: 0 13px 12px 13px ; flex: 0 0 auto ;
737736
--rq-shadow: 1px 4px 8px -6px rgba(169,169,169,0.75) ; box-shadow: var(--rq-shadow) ;
738737
-webkit-box-shadow: var(--rq-shadow) ; -moz-box-shadow: var(--rq-shadow) ;
739-
${ willNotZoom ? '' : `transition: var(--rq-transition) ;
738+
${ config.fgAnimationsDisabled ? '' : `transition: var(--rq-transition) ;
740739
-webkit-transition: var(--rq-transition) ; -moz-transition: var(--rq-transition) ;
741740
-o-transition: var(--rq-transition) ; -ms-transition: var(--rq-transition)` }}
742741
.${app.slug}-related-query:hover, .${app.slug}-related-query:focus {
@@ -2497,7 +2496,7 @@
24972496
--modal-btn-zoom: scale(1.055) ; --modal-btn-transition: transform 0.15s ease ;
24982497
--settings-li-transition: transform 0.1s ease ; /* for Settings entry hover-zoom */
24992498
--fg-transition: opacity 0.65s cubic-bezier(0.165,0.84,0.44,1), /* fade-in */
2500-
transform 0.55s cubic-bezier(0.165,0.84,0.44,1) !important ; /* move-in */
2499+
transform 0.55s cubic-bezier(0.165,0.84,0.44,1) !important ; /* move-in */
25012500
--bg-transition: background-color 0.25s ease !important } /* dim */`
25022501

25032502
// Main modal styles

0 commit comments

Comments
 (0)