Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voting: fix a description overflow issue #1021

Merged
merged 3 commits into from
Oct 17, 2019
Merged

Conversation

bpierre
Copy link
Contributor

@bpierre bpierre commented Oct 17, 2019

Before (notice the scrollbars):

image

After:

image

Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

LGTM!

// which is why word-break:break-word has been added.
hyphens: auto;
overflow-wrap: anywhere;
word-break: break-word;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we put this in VoteText instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes maybe we could: VoteText is inline but it’s only used as a block, the structure must be coming from a need in the previous version. Changing it 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in e6e78b7

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 97.875% when pulling 3b6ad07 on voting-description-overflow into 4d9d138 on master.

/* lines per font size per line height */
/* shorter texts align to the top */
height: ${10.5 * GU}px;
height: ${27 * 3}px; // 27px = line-height with body1
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add a note to the comment about 3 being the number of lines we want

Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

LGTM!

@bpierre bpierre merged commit a81685a into master Oct 17, 2019
@bpierre bpierre deleted the voting-description-overflow branch October 17, 2019 23:23
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants