mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +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 {
|
||||
.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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user