mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-28 12:15:00 +08:00
[web] style start menu
This commit is contained in:
@@ -57,10 +57,24 @@ header {
|
||||
@menu-main-gutter-width: 5px;
|
||||
.menu-main {
|
||||
.make-row(@menu-main-gutter-width);
|
||||
padding: 2px 5px;
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
||||
@@ -47,7 +47,7 @@ export default class FilterDocs extends Component {
|
||||
<a href="http://docs.mitmproxy.org/en/stable/features/filters.html"
|
||||
target="_blank">
|
||||
<i className="fa fa-external-link"></i>
|
||||
  mitmproxy docs</a>
|
||||
mitmproxy docs</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -4,7 +4,7 @@ export const SET_ACTIVE_MENU = 'UI_SET_ACTIVE_MENU'
|
||||
|
||||
|
||||
const defaultState = {
|
||||
activeMenu: 'Options',
|
||||
activeMenu: 'Start',
|
||||
isFlowSelected: false,
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function reducer(state = defaultState, action) {
|
||||
if (action.flowIds.length && !state.isFlowSelected) {
|
||||
return {
|
||||
...state,
|
||||
activeMenu: 'Options',
|
||||
activeMenu: 'Flow',
|
||||
isFlowSelected: true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user