Skip to content

Commit d94f05c

Browse files
committed
1 parent 6957eb5 commit d94f05c

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 12 additions & 7 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.15.2
151+
// @version 2025.10.16
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
@@ -1956,8 +1956,8 @@
19561956
// Re-style elems
19571957
apiModal.querySelector('h2').style.justifySelf = 'center' // center title
19581958
const btnsDiv = apiModal.querySelector('.modal-buttons')
1959-
btnsDiv.style.cssText = ` /* y-pad, gridify */
1960-
margin: 18px 0px 14px !important ; display: grid ; grid-template-columns: repeat(3, 1fr) ; gap: 10px`
1959+
btnsDiv.style.cssText = `margin-top: 23px !important ; ${ env.browser.isPhone ? ''
1960+
: 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify desktop btns
19611961
btnsDiv.querySelectorAll('button').forEach((btn, idx) => {
19621962
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
19631963
else btn.classList.toggle('primary-modal-btn', // emphasize preferred API
@@ -1983,8 +1983,9 @@
19831983

19841984
// Re-style button cluster
19851985
const btnsDiv = feedbackModal.querySelector('.modal-buttons')
1986-
btnsDiv.style.cssText += `display: flex ; flex-wrap: wrap ; justify-content: center ;
1987-
margin: 18px 0 6px !important` // close gap between title/btns
1986+
if (!env.browser.isPhone) // gridify wide view btns
1987+
btnsDiv.style.cssText = 'flex-wrap: wrap ; justify-content: center ; gap: 3px'
1988+
19881989
// Hack buttons
19891990
btns = btnsDiv.querySelectorAll('button')
19901991
btns.forEach((btn, idx) => {
@@ -2513,8 +2514,12 @@
25132514
// Main modal styles
25142515
+ `@keyframes modal-zoom-fade-out {
25152516
0% { opacity: 1 } 50% { opacity: 0.25 ; transform: scale(1.05) }
2516-
100% { opacity: 0 ; transform: scale(1.35) }}
2517-
.chatgpt-modal > div { background-color: white !important ; color: #202124 }
2517+
100% { opacity: 0 ; transform: scale(1.35) }
2518+
}
2519+
.chatgpt-modal > div {
2520+
background-color: white !important ; color: #202124 ;
2521+
${ env.browser.isPhone ? 'padding: 25px 31px !important' : '' }
2522+
}
25182523
.chatgpt-modal p { margin: 14px 0 -20px 4px ; font-size: 18px } /* pos/size modal msg */
25192524
.chatgpt-modal a { color: #${ env.ui.app.scheme == 'dark' ? '00cfff' : '1e9ebb' } !important }
25202525
.modal-buttons {

0 commit comments

Comments
 (0)