Commit 3fe5d76
committed
fix(details): improve markdown rendering and height calculation stability
This commit fixes issues where UI sections might not correctly recalculate their expandable heights when content changes and improves markdown link resolution.
- **fix(details)**: Updated `WhatsNew` and `About` sections to re-calculate `contentHeightPx` when the source content or collapsed height constraints change by adding appropriate keys to `remember`.
- **fix(details)**: Optimized `About` section by removing redundant `remember` for `needsExpansion` and switching to `mutableFloatStateOf` in `WhatsNew` for better performance.
- **fix(data)**: Enhanced markdown preprocessing to resolve relative or shorthand URLs within markdown link syntax.1 parent 40a4e8a commit 3fe5d76
3 files changed
Lines changed: 9 additions & 8 deletions
File tree
- feature/details
- data/src/commonMain/kotlin/zed/rainxch/details/data/utils
- presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/components/sections
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | | - | |
| 334 | + | |
334 | 335 | | |
335 | | - | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 120 | + | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments