mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +00:00
[web] style start menu
This commit is contained in:
parent
795e76eee2
commit
6540aedaab
@ -57,10 +57,24 @@ header {
|
|||||||
@menu-main-gutter-width: 5px;
|
@menu-main-gutter-width: 5px;
|
||||||
.menu-main {
|
.menu-main {
|
||||||
.make-row(@menu-main-gutter-width);
|
.make-row(@menu-main-gutter-width);
|
||||||
|
padding: 2px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-input {
|
.filter-input {
|
||||||
.make-sm-column(4, @menu-main-gutter-width);
|
.make-sm-column(5, @menu-main-gutter-width);
|
||||||
|
padding: 2.5px;
|
||||||
|
|
||||||
|
@media (max-width: @screen-xs-max) {
|
||||||
|
|
||||||
|
padding: 2px 2.5px;
|
||||||
|
|
||||||
|
>.form-control,> .input-group-addon, > .input-group-btn>.btn {
|
||||||
|
height: 23.5px;
|
||||||
|
padding: 1px 5px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-input .popover {
|
.filter-input .popover {
|
||||||
|
@ -47,7 +47,7 @@ export default class FilterDocs extends Component {
|
|||||||
<a href="http://docs.mitmproxy.org/en/stable/features/filters.html"
|
<a href="http://docs.mitmproxy.org/en/stable/features/filters.html"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
<i className="fa fa-external-link"></i>
|
<i className="fa fa-external-link"></i>
|
||||||
  mitmproxy docs</a>
|
mitmproxy docs</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -4,7 +4,7 @@ export const SET_ACTIVE_MENU = 'UI_SET_ACTIVE_MENU'
|
|||||||
|
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
activeMenu: 'Options',
|
activeMenu: 'Start',
|
||||||
isFlowSelected: false,
|
isFlowSelected: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ export default function reducer(state = defaultState, action) {
|
|||||||
if (action.flowIds.length && !state.isFlowSelected) {
|
if (action.flowIds.length && !state.isFlowSelected) {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
activeMenu: 'Options',
|
activeMenu: 'Flow',
|
||||||
isFlowSelected: true,
|
isFlowSelected: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user