From 1f9f09ba6fa2646d27b408304846d164c547f5dc Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Sat, 13 Jun 2020 14:48:12 +0200 Subject: [PATCH] Reorder user task table columns --- .../webapp/src/main/elm/Comp/NotificationList.elm | 14 +++++++------- .../webapp/src/main/elm/Comp/ScanMailboxList.elm | 15 ++++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/modules/webapp/src/main/elm/Comp/NotificationList.elm b/modules/webapp/src/main/elm/Comp/NotificationList.elm index 90e14efb..537668f9 100644 --- a/modules/webapp/src/main/elm/Comp/NotificationList.elm +++ b/modules/webapp/src/main/elm/Comp/NotificationList.elm @@ -42,15 +42,15 @@ update msg model = view : Model -> List NotificationSettings -> Html Msg view _ items = div [] - [ table [ class "ui very basic table" ] + [ table [ class "ui very basic center aligned table" ] [ thead [] [ th [ class "collapsing" ] [] , th [ class "collapsing" ] [ i [ class "check icon" ] [] ] + , th [] [ text "Schedule" ] , th [] [ text "Connection" ] , th [] [ text "Recipients" ] - , th [] [ text "Schedule" ] , th [] [ text "Remind Days" ] ] , tbody [] @@ -75,17 +75,17 @@ viewItem item = , td [ class "collapsing" ] [ Util.Html.checkbox item.enabled ] + , td [] + [ code [] + [ text item.schedule + ] + ] , td [] [ text item.smtpConnection ] , td [] [ String.join ", " item.recipients |> text ] - , td [] - [ code [] - [ text item.schedule - ] - ] , td [] [ String.fromInt item.remindDays |> text diff --git a/modules/webapp/src/main/elm/Comp/ScanMailboxList.elm b/modules/webapp/src/main/elm/Comp/ScanMailboxList.elm index f3302dcf..98d6f9d5 100644 --- a/modules/webapp/src/main/elm/Comp/ScanMailboxList.elm +++ b/modules/webapp/src/main/elm/Comp/ScanMailboxList.elm @@ -42,15 +42,15 @@ update msg model = view : Model -> List ScanMailboxSettings -> Html Msg view _ items = div [] - [ table [ class "ui very basic table" ] + [ table [ class "ui very basic center aligned table" ] [ thead [] [ th [ class "collapsing" ] [] , th [ class "collapsing" ] [ i [ class "check icon" ] [] ] + , th [] [ text "Schedule" ] , th [] [ text "Connection" ] , th [] [ text "Folders" ] - , th [] [ text "Schedule" ] , th [] [ text "Received Since" ] , th [] [ text "Target" ] , th [] [ text "Delete" ] @@ -77,21 +77,22 @@ viewItem item = , td [ class "collapsing" ] [ Util.Html.checkbox item.enabled ] + , td [] + [ code [] + [ text item.schedule + ] + ] , td [] [ text item.imapConnection ] , td [] [ String.join ", " item.folders |> text ] - , td [] - [ code [] - [ text item.schedule - ] - ] , td [] [ Maybe.map String.fromInt item.receivedSinceHours |> Maybe.withDefault "-" |> text + , text " h" ] , td [] [ Maybe.withDefault "-" item.targetFolder