mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-23 05:09:57 +00:00
Improve design capture page (#7160)
* improve style capture page * use left-border * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
401b5c0198
commit
59129de1fb
@ -10,10 +10,21 @@
|
||||
width: 100vw;
|
||||
|
||||
h3 {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.modes-category {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.green-left-border {
|
||||
border-left: 10px solid #77c77a;
|
||||
}
|
||||
|
||||
.gray-left-border {
|
||||
border-left: 10px solid #b2b2b2;
|
||||
}
|
||||
|
||||
.modes-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -16,19 +16,25 @@ export default function Modes() {
|
||||
<h2>Intercept Traffic</h2>
|
||||
<p>Configure how you want to intercept traffic with mitmproxy.</p>
|
||||
|
||||
<h3>Recommended</h3>
|
||||
<div className="modes-container">
|
||||
<Regular />
|
||||
{!platform.startsWith("linux") ? <Local /> : undefined}
|
||||
<Wireguard />
|
||||
<Reverse />
|
||||
<div className="modes-category green-left-border">
|
||||
<h3>Recommended</h3>
|
||||
<div className="modes-container">
|
||||
<Regular />
|
||||
{!platform.startsWith("linux") ? <Local /> : undefined}
|
||||
<Wireguard />
|
||||
<Reverse />
|
||||
</div>
|
||||
</div>
|
||||
<h3>Advanced</h3>
|
||||
<div className="modes-container">
|
||||
<Socks />
|
||||
<Upstream />
|
||||
<Dns />
|
||||
{!platform.startsWith("win32") ? <Transparent /> : undefined}
|
||||
<div className="modes-category gray-left-border">
|
||||
<h3>Advanced</h3>
|
||||
<div className="modes-container">
|
||||
<Socks />
|
||||
<Upstream />
|
||||
<Dns />
|
||||
{!platform.startsWith("win32") ? (
|
||||
<Transparent />
|
||||
) : undefined}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user