Skip to content

fix(android): prevent summary widget overflow when all groups visible#296

Merged
dkhalife merged 1 commit intomainfrom
fix/summary-widget-overflow
Apr 4, 2026
Merged

fix(android): prevent summary widget overflow when all groups visible#296
dkhalife merged 1 commit intomainfrom
fix/summary-widget-overflow

Conversation

@dkhalife
Copy link
Copy Markdown
Owner

@dkhalife dkhalife commented Apr 4, 2026

Problem

The TaskSummaryWidget overflows when all due-date groups have tasks. The last groups get clipped -- Later is barely visible and its count is displaced off-screen.

Root Cause

Each group Column in the Row was sized by its intrinsic content width with fixed 6.dp horizontal padding. With 6-7 groups visible, the total intrinsic width exceeded the widget bounds.

Fix

  • defaultWeight() on each group Column so the Row distributes available width equally among all visible groups
  • Reduced horizontal padding from 6.dp to 2.dp per column
  • Reduced font sizes: count from 28sp to 24sp, label from 13sp to 11sp

Use defaultWeight() on each group Column so the Row distributes space
equally among all visible categories. Reduce font sizes (count 28→24sp,
label 13→11sp) and horizontal padding (6→2dp) to fit comfortably even
when all 7 groups are shown.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 4, 2026 03:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Android TaskSummary Glance widget layout to prevent horizontal overflow when many due-date groups are visible, ensuring all groups remain readable within widget bounds.

Changes:

  • Distribute available row width evenly across visible groups using defaultWeight() on each group column.
  • Reduce per-group horizontal padding to lower total required width.
  • Decrease count/label font sizes to further reduce clipping risk.
Show a summary per file
File Description
android/app/src/main/java/com/dkhalife/tasks/ui/widget/summary/TaskSummaryWidget.kt Applies weighted layout + smaller padding/fonts to keep all summary groups within widget bounds.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@dkhalife dkhalife merged commit 3093f0d into main Apr 4, 2026
10 checks passed
@dkhalife dkhalife deleted the fix/summary-widget-overflow branch April 4, 2026 04:41
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.

2 participants