-
Notifications
You must be signed in to change notification settings - Fork 426
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
Display short URL when not editing #2357
Conversation
} | ||
} | ||
|
||
static func deemphasisePath(forUrl url: URL) -> NSAttributedString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we need this now do we? The point of this was to make everything after the first slash slightly lighter but we're not showing that any more. When the user is editing it should all be the same colour anyway imo (I don't think anyone expects the text to be demphasised while editing).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had mixed feelings about this part too, but ended up leaving it as it is since the text appearance was not updated while editing - that made me believe it’s intentional behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed: 84be4ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works good, but I don't think we need the de-emphasis anymore. That's only shown when editing and I don't think anyone expects that while editing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Task/Issue URL: https://app.asana.com/0/1206226850447395/1205485701057249
Description:
Displays a short URL (hostname without
www
component), while browsing. While short URL is displayed, the text alignment is adjusted to the center.Steps to test this PR:
Theme Testing: