|
3 | 3 | // @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o! |
4 | 4 | // @author KudoAI |
5 | 5 | // @namespace https://kudoai.com |
6 | | -// @version 2025.10.15.2 |
| 6 | +// @version 2025.10.16 |
7 | 7 | // @license MIT |
8 | 8 | // @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c |
9 | 9 | // @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c |
|
1327 | 1327 | // Re-style elems |
1328 | 1328 | apiModal.querySelector('h2').style.justifySelf = 'center' // center title |
1329 | 1329 | const btnsDiv = apiModal.querySelector('.modal-buttons') |
1330 | | - btnsDiv.style.cssText = ` /* y-pad, gridify */ |
1331 | | - margin: 18px 0px 14px !important ; display: grid ; grid-template-columns: repeat(3, 1fr) ; gap: 10px` |
| 1330 | + btnsDiv.style.cssText = `margin: 0 !important ; ${ env.browser.isPhone ? '' |
| 1331 | + : 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify desktop btns |
1332 | 1332 | btnsDiv.querySelectorAll('button').forEach((btn, idx) => { |
1333 | 1333 | if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
1334 | 1334 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
|
1829 | 1829 | // Main modal styles |
1830 | 1830 | + `@keyframes modal-zoom-fade-out { |
1831 | 1831 | 0% { opacity: 1 } 50% { opacity: 0.25 ; transform: scale(1.05) } |
1832 | | - 100% { opacity: 0 ; transform: scale(1.35) }} |
| 1832 | + 100% { opacity: 0 ; transform: scale(1.35) } |
| 1833 | + } |
1833 | 1834 | .chatgpt-modal > div { |
1834 | | - padding: 20px 30px 24px 17px !important ; /* increase alert padding */ |
1835 | | - background-color: white !important ; color: black } |
| 1835 | + background-color: white !important ; color: black ; |
| 1836 | + padding: ${ env.browser.isPhone ? '22px' : '20px 30px 24px 17px' }!important |
| 1837 | + } |
1836 | 1838 | .chatgpt-modal p { margin: -8px 0 -14px 4px ; font-size: 22px ; line-height: 31px } |
1837 | 1839 | .chatgpt-modal a { color: #${ env.ui.app.scheme == 'dark' ? '00cfff' : '1e9ebb' } !important } |
1838 | 1840 | .modal-buttons { |
|
0 commit comments