Skip to content

Simplify ShortcutButton layout and text constraints#2110

Open
sds100 wants to merge 1 commit intodevelopfrom
claude/don-t-wrap-strings-for-tiles-on-discover-screen-xO85h
Open

Simplify ShortcutButton layout and text constraints#2110
sds100 wants to merge 1 commit intodevelopfrom
claude/don-t-wrap-strings-for-tiles-on-discover-screen-xO85h

Conversation

@sds100
Copy link
Copy Markdown
Collaborator

@sds100 sds100 commented Apr 12, 2026

Summary

Simplified the ShortcutButton composable by removing width constraints and adjusting text display behavior for improved layout flexibility.

Key Changes

  • Removed widthIn(max = 56.dp) modifier constraint from the Column layout
  • Changed text maxLines from 2 to 1 for single-line display
  • Removed unused widthIn import

Implementation Details

These changes allow the ShortcutButton to size itself more naturally based on content rather than being constrained to a fixed maximum width. The text will now display on a single line with ellipsis overflow, providing a cleaner and more predictable appearance.

https://claude.ai/code/session_01W3yFTWbyc9dxMPumNUhsS8

Remove the 56dp max width constraint on ShortcutButton tiles and reduce
maxLines from 2 to 1 so labels render on a single line instead of
wrapping awkwardly.

https://claude.ai/code/session_01W3yFTWbyc9dxMPumNUhsS8
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