-
Notifications
You must be signed in to change notification settings - Fork 336
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
Improve file history picker UX #2785
Conversation
@@ -353,6 +353,9 @@ class FileNode extends TreeNode<FileNode> { | |||
} | |||
|
|||
class ScriptRefUtils { | |||
static String fileName(ScriptRef scriptRef) => |
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.
wasn't this landed in your last PR?
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.
Yeh. Just need to merge master.
scriptRef.uri, | ||
overflow: TextOverflow.ellipsis, | ||
maxLines: 1, | ||
style: const TextStyle(fontSize: 14.0, color: Colors.grey), |
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.
can you used theme.subtleTextStyle here instead?
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.
Done.
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.
also not sure if i missed this in your last PR, but if we are changing the color manually to gray there too, can we use subtle instead?
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'll update it in this PR and land it here.
Related to #2784
Mirror the file picker UX in Chrome which shows file results in two lines, the first line is simply the file name, the second line is the entire path potentially truncated. This helps for very long files as it's difficult to distinguish between truncated file names, especially in the history workflow as we do not have a tooltip.