-
Notifications
You must be signed in to change notification settings - Fork 495
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
💄: files tweaks #723
The head ref may contain hidden characters: "\u{1F484}/revamp/files-tweaks"
💄: files tweaks #723
Conversation
Questions for you (@lidel @olizilla @alanshaw @fsdiogo). Should we just use the native tooltip through
|
I'd give tooltip to both hash and filename, as we may have very long ones that get truncated, and tooltip should have the full version. As for file listing, I like first and last version, but last one may be easier on the eyes. |
Yes, makes sense.
So you prefer the smaller font-size with bold when checked, right?
Clicking on the hash should copy the hash, go to Inspect or just open the file as clicking on the name would do? |
Hmm, Lighthouse says any font below 16px is small. Using |
Sure, makes sense. let's wait for more opinions.
Didn't know we could cancel the |
Good catch :) I forgot we don't have cancellable API requests due to Fetch API limitations: https://github.com/ipfs/js-ipfs-api/issues/694 |
I think this is ready to be reviewed. The CI is failing but it seems to be failing randomly at the navigation test. Should we change the timeout? |
src/files/file-icon/FileIcon.js
Outdated
@@ -11,21 +11,21 @@ import DocText from '../../icons/GlyphDocText' | |||
|
|||
export default function FileIcon ({name, type}) { | |||
if (type === 'directory') { | |||
return <Folder className=' fill-aqua' width='2.5rem' /> | |||
return <Folder className=' fill-aqua' style={{width: '2.5rem'}} /> |
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.
The style={{width: '2.5rem'}}
should be in a variable as it's being used in all the cases.
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 👍
Blocked by:
Changes:
License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com