Commit c173f76
Refine UX: center lock icon and force scroll to top
Two refinements to improve AI feature UX:
1. Lock Icon Centering (Types.php)
- Re-added flexbox with center alignment (justify-content: center)
- Positioned near top using align-items: flex-start with 60px padding
- Icon is now centered horizontally and positioned at top without text overlap
2. Scroll Position Fix (Types.php + frame.js)
- Added inline JavaScript to force scroll to top on page load
- Uses both DOMContentLoaded and load events to ensure scroll stays at top
- Overrides any cached JavaScript that might cause auto-scroll
- Cleaned up frame.js by removing obsolete commented code
This ensures the AI image upload section is always visible when opening
the chart creation modal, regardless of browser caching.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5bdad42 commit c173f76
2 files changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 10 | + | |
18 | 11 | | |
19 | 12 | | |
20 | 13 | | |
| |||
0 commit comments