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

bug: ellipsis for extra long shortened links #716

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

jials
Copy link
Contributor

@jials jials commented Oct 10, 2020

Problem

When user create an extra long link, the user table will overflow and this pushes the other columns out of sight.

Closes #411

Solution

Set maxWidth = 400px to the shortUrl div for viewport bigger than md. Also add tooltip to show the full URL when hover above the short URL.

Before & After Screenshots

BEFORE:
image

AFTER:
image
image

@jials jials force-pushed the bug/ellipsis-extra-long-links branch from 3d34d2e to e93eb4e Compare October 10, 2020 11:55
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

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

Lgtm!

@LoneRifle LoneRifle merged commit 2b4bcf6 into opengovsg:develop Oct 10, 2020
@jials jials deleted the bug/ellipsis-extra-long-links branch October 11, 2020 04:24
@jials
Copy link
Contributor Author

jials commented Oct 11, 2020

@LoneRifle Mind to help me to add a hacktoberfest-accepted label to this PR please? 🙏 Thank you so much!

https://hacktoberfest.digitalocean.com/hacktoberfest-update

@LoneRifle
Copy link
Contributor

I assume that hacktoberfest should have picked up on the PR already, but ok.

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.

Ellipsis for extra long links
2 participants