Skip to content

Use TextOverflow.ELLIPSIS enum instead of string literal in projects/view.py#240

Merged
clstaudt merged 2 commits intostreamlinefrom
copilot/sub-pr-239
Mar 10, 2026
Merged

Use TextOverflow.ELLIPSIS enum instead of string literal in projects/view.py#240
clstaudt merged 2 commits intostreamlinefrom
copilot/sub-pr-239

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

Four Text controls in the projects view were using overflow="ellipsis" (a raw string), while the rest of the codebase (e.g. invoicing view) uses the typed enum TextOverflow.ELLIPSIS. Inconsistent usage risks silent failures across Flet versions.

Changes

  • tuttle/app/projects/view.py: Added TextOverflow to the flet imports; replaced all four overflow="ellipsis" string literals with overflow=TextOverflow.ELLIPSIS
# Before
Text(project.title, overflow="ellipsis", ...)

# After
Text(project.title, overflow=TextOverflow.ELLIPSIS, ...)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: clstaudt <875194+clstaudt@users.noreply.github.com>
Copilot AI changed the title [WIP] Update UI/UX based on feedback for version 2.1 Use TextOverflow.ELLIPSIS enum instead of string literal in projects/view.py Mar 10, 2026
@clstaudt clstaudt marked this pull request as ready for review March 10, 2026 08:26
@clstaudt clstaudt merged commit b98bd06 into streamline Mar 10, 2026
2 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.

2 participants