mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
resolveCardHeight now stacks the preset base, the global Card percent, and the per-row multiplier: effective = base * globalCardSizePercent / 100 * cardSizeMultiplier / 100. Before this commit, a row with an absolute preset heightDp (Favorite-Episode at 148, live-TV at 96, etc.) was insulated from the global slider - the user had to drag the per-row Card slider on that specific row to scale it, which made the global slider feel inconsistent. Now the global reaches every row; preset rows still get to set their own anchor and the per-row multiplier still adjusts them independently. Signature change: globalCardHeightDp (a pre-scaled dp value) is replaced by globalCardSizePercent (raw percent) so the resolver can apply the global multiplication itself, and baseCardHeightDp is renamed to naturalCardHeightDp since it now serves both as the fallback base and as the no-override sentinel. The composable caller (resolvedCardHeight) drops its branch to pick between cardHeightDp and episodeCardHeightDp - it just passes cardSizePercent through. Tests cover preset compounding (148 * 150% * 100% = 222; 148 * 50% = 74; 96 * 125% = 120) plus the existing natural-base, sentinel, and per-row override cases retargeted at the new signature. |
||
|---|---|---|
| .. | ||
| config | ||
| schemas/com.github.damontecres.wholphin.data.AppDatabase | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||