Commit be83223
fix: click area keep same with app on dock.
1. Moved Timer, MouseArea and HoverHandler components out of Icon
component hierarchy
2. Added console log for debugging icon dimensions
3. Improved code organization by flattening component structure
4. Maintained all existing functionality while making code more readable
The changes were made to:
- Simplify the component hierarchy which was unnecessarily nested
- Make the code easier to maintain and debug
- Prepare for future enhancements by having cleaner structure
- Add debugging output for icon dimensions which helps troubleshooting
layout issues
fix: 修复点击范围保持跟应用一致.
1. 将 Timer、MouseArea 和 HoverHandler 组件移出 Icon 组件层次结构
2. 添加控制台日志用于调试图标尺寸
3. 通过扁平化组件结构改进代码组织
4. 在保持所有现有功能的同时使代码更易读
Pms: BUG-3237631 parent edc58d2 commit be83223
1 file changed
Lines changed: 28 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
389 | 387 | | |
| 388 | + | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
0 commit comments