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
Feature/button-to-close-flow-details-view #6734
Feature/button-to-close-flow-details-view #6734
Conversation
Code looks good, can you include a rendered preview in the PR description please? 😃 |
yes I'm uploading a screen recording :) Let me know if I have to change something! Thanks |
Tiny nitpick: please make this a |
should we keep the default design of a |
@mhils what do you think now? Should I change the color ? |
Nice! I don't think it needs emphasis, so probably just gray? It would also be cool to use a proper close icon and not just a text x. Does our fontawesome version have xmark yet? :) |
okay perfect! Apparently xmark is not listed in the |
Upgrading to fontawesome v5 isn't entirely painless here I'm afraid. Let's not add feature creep to this PR. Can we replace the icon for abort with fa-times-circle, and use fa-times for the close button? |
done :) |
Should I add something else? Or is it fine now? @mhils |
Could you post a screenshot of what it looks like now please? |
Sure, i’ll do it later :)
Inviato da Outlook per iOS<https://aka.ms/o0ukef>
…________________________________
Da: Maximilian Hils ***@***.***>
Inviato: Friday, March 22, 2024 2:16:39 PM
A: mitmproxy/mitmproxy ***@***.***>
Cc: Matteo Luppi ***@***.***>; Author ***@***.***>
Oggetto: Re: [mitmproxy/mitmproxy] Feature/button-to-close-flow-details-view (PR #6734)
Could you post a screenshot of what it looks like now please?
—
Reply to this email directly, view it on GitHub<#6734 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AX5Y6WJQKVNDY5S67DJ2LITYZQVLPAVCNFSM6AAAAABETUQ4S2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGA4DCMRQGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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.
Thanks, this looks great now! Maybe add color: black
on hover?
web/src/css/flowdetail.less
Outdated
@@ -21,6 +21,17 @@ | |||
} | |||
} | |||
|
|||
.close-button { | |||
margin-top: 2; |
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.
Some leftovers here due to this now being a button?
(I also cannot resist: Two what? Two horses?)
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.
Yes, to align the icon with the text of the tab
font-size: 15px; | ||
cursor: pointer; | ||
border: none; | ||
} |
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.
There are still some leftovers here. For example, cursor: pointer;
is unnecessary for a button.
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.
right, just cursor
and font-weight
, the others are necessary I think
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.
now?
wait why the check fails now? I just removed 2 lines 😅 |
Thanks! 🍰 |
Description
Added a button to close the flow details panel, as discussed in issue #6725. It could be useful to have a button to immediately close the section. This is a preliminary idea, as I didn't want to alter the design significantly. What are your thoughts?
Screen.Recording.2024-03-14.at.17.49.00.mov
Checklist