Commit 9b3d573
committed
refactor(ui): elevate click handling to ExpressiveCard
This commit refactors the click handling logic for repository items by moving the `clickable` interaction from the inner content containers to the `ExpressiveCard` component itself. This ensures a more consistent ripple effect and simplifies the internal layout structure.
- **refactor(core)**: Updated `ExpressiveCard` to conditionally support an `onClick` parameter, leveraging `ElevatedCard` overloads for better accessibility and interaction handling.
- **refactor(apps)**: Moved repo click logic from the inner `Column` to the `ExpressiveCard` in `AppsRoot.kt`.
- **refactor(dev-profile)**: Moved repo click logic from the inner `Column` to the `ExpressiveCard` in `DeveloperRepoItem.kt`.1 parent fca8393 commit 9b3d573
3 files changed
Lines changed: 25 additions & 14 deletions
File tree
- core/presentation/src/commonMain/kotlin/zed/rainxch/core/presentation/components
- feature
- apps/presentation/src/commonMain/kotlin/zed/rainxch/apps/presentation
- dev-profile/presentation/src/commonMain/kotlin/zed/rainxch/devprofile/presentation/components
core/presentation/src/commonMain/kotlin/zed/rainxch/core/presentation/components/ExpressiveCard.kt
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
379 | 382 | | |
380 | 383 | | |
381 | 384 | | |
382 | | - | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments