|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2025.10.15.2 |
| 151 | +// @version 2025.10.16 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2 |
154 | 154 | // @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2 |
|
1956 | 1956 | // Re-style elems |
1957 | 1957 | apiModal.querySelector('h2').style.justifySelf = 'center' // center title |
1958 | 1958 | 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 |
1961 | 1961 | btnsDiv.querySelectorAll('button').forEach((btn, idx) => { |
1962 | 1962 | if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
1963 | 1963 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
|
1983 | 1983 |
|
1984 | 1984 | // Re-style button cluster |
1985 | 1985 | 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 | + |
1988 | 1989 | // Hack buttons |
1989 | 1990 | btns = btnsDiv.querySelectorAll('button') |
1990 | 1991 | btns.forEach((btn, idx) => { |
|
2513 | 2514 | // Main modal styles |
2514 | 2515 | + `@keyframes modal-zoom-fade-out { |
2515 | 2516 | 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 | + } |
2518 | 2523 | .chatgpt-modal p { margin: 14px 0 -20px 4px ; font-size: 18px } /* pos/size modal msg */ |
2519 | 2524 | .chatgpt-modal a { color: #${ env.ui.app.scheme == 'dark' ? '00cfff' : '1e9ebb' } !important } |
2520 | 2525 | .modal-buttons { |
|
0 commit comments