From b82cafc338b122eaa992c14bba42e69389fbc4d5 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Fri, 15 Feb 2019 18:47:05 -0800 Subject: [PATCH] ui: mailbox input to end of nav for kbd sanity --- ui/src/Layout.elm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/src/Layout.elm b/ui/src/Layout.elm index 18f1d6fc..bd93c53a 100644 --- a/ui/src/Layout.elm +++ b/ui/src/Layout.elm @@ -51,7 +51,14 @@ frame controls session activePage modal content = , span [ class "navbar-brand" ] [ a [ Route.href Route.Home ] [ text "@ inbucket" ] ] , ul [ classList [ ( "main-nav", True ), ( "active", controls.showMenu ) ] ] - [ li [ class "navbar-mailbox" ] + [ if session.config.monitorVisible then + navbarLink Monitor Route.Monitor [ text "Monitor" ] activePage + + else + text "" + , navbarLink Status Route.Status [ text "Status" ] activePage + , navbarRecent activePage controls + , li [ class "navbar-mailbox" ] [ form [ Events.onSubmit (controls.viewMailbox controls.mailboxValue) ] [ input [ type_ "text" @@ -62,13 +69,6 @@ frame controls session activePage modal content = [] ] ] - , if session.config.monitorVisible then - navbarLink Monitor Route.Monitor [ text "Monitor" ] activePage - - else - text "" - , navbarLink Status Route.Status [ text "Status" ] activePage - , navbarRecent activePage controls ] ] ]