[web] style start menu

This commit is contained in:
Maximilian Hils 2016-12-11 18:49:28 +01:00
parent 795e76eee2
commit 6540aedaab
3 changed files with 18 additions and 4 deletions

View File

@ -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 {

View File

@ -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>
&nbsp mitmproxy docs</a> &nbsp; mitmproxy docs</a>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -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,
} }
} }