Skip to content

fix(loan-account): Set fixed height for label value card#3105

Merged
biplab1 merged 2 commits intoopenMF:developmentfrom
markrizkalla:feature/enhance-loan-account-ui
Feb 9, 2026
Merged

fix(loan-account): Set fixed height for label value card#3105
biplab1 merged 2 commits intoopenMF:developmentfrom
markrizkalla:feature/enhance-loan-account-ui

Conversation

@markrizkalla
Copy link
Contributor

@markrizkalla markrizkalla commented Feb 8, 2026

Changed defaultMinSize to a fixed height for the MifosLabelValueCard in the loan account details screen.

Fixes - Jira-#MM-552

Please Add Screenshots If there are any UI changes.

Before After
Before After

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the static analysis check ./gradlew check or ci-prepush.sh to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

Summary by CodeRabbit

  • Style
    • Refined card layout rendering in the Loan Account Details screen for improved visual consistency.

Changed `defaultMinSize` to a fixed `height` for the `MifosLabelValueCard` in the loan account details screen.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 8, 2026

📝 Walkthrough

Walkthrough

A layout modifier in LoanAccountDetailsScreen was changed from defaultMinSize(minHeight = DesignToken.sizes.cardDp64) to height(DesignToken.sizes.cardDp64) on the AccountDetailsGrid component, altering how the card enforces its vertical size constraint.

Changes

Cohort / File(s) Summary
Compose Layout Modifier Update
feature/loan-account/src/commonMain/kotlin/org/mifos/mobile/feature/loanaccount/loanAccountDetails/LoanAccountDetailsScreen.kt
Replaced defaultMinSize(minHeight = ...) with height(...) for AccountDetailsGrid vertical sizing constraint; updated corresponding imports.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • niyajali
  • Nagarjuna0033
  • biplab1

Poem

🐰 A modifier hops and bounds,
From default to height, no frowns,
The card now stands with fixed delight,
No longer stretching, sized just right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing defaultMinSize with a fixed height modifier for the MifosLabelValueCard in the loan account details screen.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
feature/loan-account/src/commonMain/kotlin/org/mifos/mobile/feature/loanaccount/loanAccountDetails/LoanAccountDetailsScreen.kt (1)

248-251: Fixed height may clip content under accessibility font scaling.

Switching from defaultMinSize(minHeight = …) to height(…) fixes the overflow shown in the screenshots, but it also prevents the card from growing when content is taller — e.g., with large/extra-large accessibility font sizes or longer translated strings. If clipping becomes an issue, consider Modifier.heightIn(min = DesignToken.sizes.cardDp64, max = <reasonable_max>) to bound growth without hard-clipping.

That said, the fix clearly improves the current UI — fine to ship and revisit if accessibility testing surfaces issues.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@biplab1 biplab1 enabled auto-merge (squash) February 9, 2026 13:05
@biplab1 biplab1 merged commit 7d7a9b4 into openMF:development Feb 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants