Skip to content

ChooseProjectButton: ellipsize long radio items#1043

Merged
jeremypw merged 37 commits intomasterfrom
danrabbit/choose-project-popover-ellipsizeradios
May 26, 2021
Merged

ChooseProjectButton: ellipsize long radio items#1043
jeremypw merged 37 commits intomasterfrom
danrabbit/choose-project-popover-ellipsizeradios

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented May 19, 2021

Make sure we also handle ellipsizing radio items

Change ellipsize mode to middle to disambiguate cases like switchboard-plug-foo where relevant information is at the beginning and end

Jeremy Wootten and others added 26 commits May 15, 2021 19:14
* FileView responsible for removing project from GitManager when closed
# Conflicts fixed in:
#	src/Dialogs/NewBranchDialog.vala
get_radio_group ()

Co-authored-by: Daniel Foré <daniel@elementary.io>
Co-authored-by: Daniel Foré <daniel@elementary.io>
Co-authored-by: Daniel Foré <daniel@elementary.io>
@danirabbit danirabbit requested a review from jeremypw May 19, 2021 20:49
@jeremypw
Copy link
Collaborator

jeremypw commented May 20, 2021

I guess this is required as a consequence of constraining the width of the popover and the width of the button to be the same. Is there any downside to allowing the popover to expand to show the full project name (i.e. removing the sizegroup)?

* ChooseProjectButton: use a liststore to populate project list

* scope down manager

* smaller diff

* remove unused method
@jeremypw
Copy link
Collaborator

I agree with the middle ellipsize for th button though.

@jeremypw
Copy link
Collaborator

This is how it looks if you remove the size group and instead use the same character with for the search entry as for the button label.

With a long project name
ExpandPopoverLong
Without a long project name
ExpandPopoverShort

danirabbit and others added 2 commits May 20, 2021 18:46
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

I have suggested an alternative - I think it would be better to see the full name in the popover.

@danirabbit
Copy link
Member Author

@jeremypw Removed the sizegroup instead, but kept middle ellipsize 👍

Base automatically changed from choose-project-popover to master May 25, 2021 18:02
@danirabbit danirabbit requested a review from jeremypw May 25, 2021 18:04
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

👍

@jeremypw jeremypw merged commit b6352a3 into master May 26, 2021
@jeremypw jeremypw deleted the danrabbit/choose-project-popover-ellipsizeradios branch May 26, 2021 16:18
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