From bb1f948f256ca8f28556ca0cf85125d69d045013 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Sat, 11 Jan 2020 20:22:51 +0100 Subject: [PATCH] Fix search menu width --- .../src/main/elm/Comp/EmailSettingsManage.elm | 44 +++++++++---------- .../src/main/elm/Comp/EquipmentManage.elm | 44 +++++++++---------- .../webapp/src/main/elm/Comp/OrgManage.elm | 44 +++++++++---------- .../webapp/src/main/elm/Comp/PersonManage.elm | 44 +++++++++---------- .../webapp/src/main/elm/Comp/TagManage.elm | 44 +++++++++---------- 5 files changed, 105 insertions(+), 115 deletions(-) diff --git a/modules/webapp/src/main/elm/Comp/EmailSettingsManage.elm b/modules/webapp/src/main/elm/Comp/EmailSettingsManage.elm index 9e3d55b8..d15b097e 100644 --- a/modules/webapp/src/main/elm/Comp/EmailSettingsManage.elm +++ b/modules/webapp/src/main/elm/Comp/EmailSettingsManage.elm @@ -212,31 +212,29 @@ view model = viewTable : Model -> Html Msg viewTable model = div [] - [ div [ class "ui secondary menu container" ] - [ div [ class "ui container" ] - [ div [ class "fitted-item" ] - [ div [ class "ui icon input" ] - [ input - [ type_ "text" - , onInput SetQuery - , value model.query - , placeholder "Search…" - ] - [] - , i [ class "ui search icon" ] - [] + [ div [ class "ui secondary menu" ] + [ div [ class "horizontally fitted item" ] + [ div [ class "ui icon input" ] + [ input + [ type_ "text" + , onInput SetQuery + , value model.query + , placeholder "Search…" ] + [] + , i [ class "ui search icon" ] + [] ] - , div [ class "right menu" ] - [ div [ class "fitted-item" ] - [ a - [ class "ui primary button" - , href "#" - , onClick InitNew - ] - [ i [ class "plus icon" ] [] - , text "New Settings" - ] + ] + , div [ class "right menu" ] + [ div [ class "item" ] + [ a + [ class "ui primary button" + , href "#" + , onClick InitNew + ] + [ i [ class "plus icon" ] [] + , text "New Settings" ] ] ] diff --git a/modules/webapp/src/main/elm/Comp/EquipmentManage.elm b/modules/webapp/src/main/elm/Comp/EquipmentManage.elm index a2de28e3..9542f518 100644 --- a/modules/webapp/src/main/elm/Comp/EquipmentManage.elm +++ b/modules/webapp/src/main/elm/Comp/EquipmentManage.elm @@ -209,31 +209,29 @@ view model = viewTable : Model -> Html Msg viewTable model = div [] - [ div [ class "ui secondary menu container" ] - [ div [ class "ui container" ] - [ div [ class "fitted-item" ] - [ div [ class "ui icon input" ] - [ input - [ type_ "text" - , onInput SetQuery - , value model.query - , placeholder "Search…" - ] - [] - , i [ class "ui search icon" ] - [] + [ div [ class "ui secondary menu" ] + [ div [ class "horizontally fitted item" ] + [ div [ class "ui icon input" ] + [ input + [ type_ "text" + , onInput SetQuery + , value model.query + , placeholder "Search…" ] + [] + , i [ class "ui search icon" ] + [] ] - , div [ class "right menu" ] - [ div [ class "fitted-item" ] - [ a - [ class "ui primary button" - , href "#" - , onClick InitNewEquipment - ] - [ i [ class "plus icon" ] [] - , text "New Equipment" - ] + ] + , div [ class "right menu" ] + [ div [ class "item" ] + [ a + [ class "ui primary button" + , href "#" + , onClick InitNewEquipment + ] + [ i [ class "plus icon" ] [] + , text "New Equipment" ] ] ] diff --git a/modules/webapp/src/main/elm/Comp/OrgManage.elm b/modules/webapp/src/main/elm/Comp/OrgManage.elm index e79fecde..807af51a 100644 --- a/modules/webapp/src/main/elm/Comp/OrgManage.elm +++ b/modules/webapp/src/main/elm/Comp/OrgManage.elm @@ -209,31 +209,29 @@ view model = viewTable : Model -> Html Msg viewTable model = div [] - [ div [ class "ui secondary menu container" ] - [ div [ class "ui container" ] - [ div [ class "fitted-item" ] - [ div [ class "ui icon input" ] - [ input - [ type_ "text" - , onInput SetQuery - , value model.query - , placeholder "Search…" - ] - [] - , i [ class "ui search icon" ] - [] + [ div [ class "ui secondary menu" ] + [ div [ class "horizontally fitted item" ] + [ div [ class "ui icon input" ] + [ input + [ type_ "text" + , onInput SetQuery + , value model.query + , placeholder "Search…" ] + [] + , i [ class "ui search icon" ] + [] ] - , div [ class "right menu" ] - [ div [ class "fitted-item" ] - [ a - [ class "ui primary button" - , href "#" - , onClick InitNewOrg - ] - [ i [ class "plus icon" ] [] - , text "New Organization" - ] + ] + , div [ class "right menu" ] + [ div [ class "item" ] + [ a + [ class "ui primary button" + , href "#" + , onClick InitNewOrg + ] + [ i [ class "plus icon" ] [] + , text "New Organization" ] ] ] diff --git a/modules/webapp/src/main/elm/Comp/PersonManage.elm b/modules/webapp/src/main/elm/Comp/PersonManage.elm index 728932a8..816a7ac6 100644 --- a/modules/webapp/src/main/elm/Comp/PersonManage.elm +++ b/modules/webapp/src/main/elm/Comp/PersonManage.elm @@ -209,31 +209,29 @@ view model = viewTable : Model -> Html Msg viewTable model = div [] - [ div [ class "ui secondary menu container" ] - [ div [ class "ui container" ] - [ div [ class "fitted-item" ] - [ div [ class "ui icon input" ] - [ input - [ type_ "text" - , onInput SetQuery - , value model.query - , placeholder "Search…" - ] - [] - , i [ class "ui search icon" ] - [] + [ div [ class "ui secondary menu" ] + [ div [ class "horizontally fitted item" ] + [ div [ class "ui icon input" ] + [ input + [ type_ "text" + , onInput SetQuery + , value model.query + , placeholder "Search…" ] + [] + , i [ class "ui search icon" ] + [] ] - , div [ class "right menu" ] - [ div [ class "fitted-item" ] - [ a - [ class "ui primary button" - , href "#" - , onClick InitNewPerson - ] - [ i [ class "plus icon" ] [] - , text "New Person" - ] + ] + , div [ class "right menu" ] + [ div [ class "item" ] + [ a + [ class "ui primary button" + , href "#" + , onClick InitNewPerson + ] + [ i [ class "plus icon" ] [] + , text "New Person" ] ] ] diff --git a/modules/webapp/src/main/elm/Comp/TagManage.elm b/modules/webapp/src/main/elm/Comp/TagManage.elm index 8cc661a9..69e2bc85 100644 --- a/modules/webapp/src/main/elm/Comp/TagManage.elm +++ b/modules/webapp/src/main/elm/Comp/TagManage.elm @@ -209,31 +209,29 @@ view model = viewTable : Model -> Html Msg viewTable model = div [] - [ div [ class "ui secondary menu container" ] - [ div [ class "ui container" ] - [ div [ class "fitted-item" ] - [ div [ class "ui icon input" ] - [ input - [ type_ "text" - , onInput SetQuery - , value model.query - , placeholder "Search…" - ] - [] - , i [ class "ui search icon" ] - [] + [ div [ class "ui secondary menu" ] + [ div [ class "horizontally fitted item" ] + [ div [ class "ui icon input" ] + [ input + [ type_ "text" + , onInput SetQuery + , value model.query + , placeholder "Search…" ] + [] + , i [ class "ui search icon" ] + [] ] - , div [ class "right menu" ] - [ div [ class "fitted-item" ] - [ a - [ class "ui primary button" - , href "#" - , onClick InitNewTag - ] - [ i [ class "plus icon" ] [] - , text "New Tag" - ] + ] + , div [ class "right menu" ] + [ div [ class "item" ] + [ a + [ class "ui primary button" + , href "#" + , onClick InitNewTag + ] + [ i [ class "plus icon" ] [] + , text "New Tag" ] ] ]