Fix table layout and notification form

The styling is broken if th elements are outside a tr. The
notification form had the same problem as the scan-mailbox form
reported in #382
This commit is contained in:
Eike Kettner
2020-11-15 00:09:29 +01:00
parent 46dbdd2625
commit 063c9895dd
7 changed files with 44 additions and 32 deletions

View File

@ -46,9 +46,11 @@ view : Model -> Html Msg
view model =
table [ class "ui selectable pointer table" ]
[ thead []
[ th [ class "collapsible" ] [ text "Name" ]
, th [] [ text "Host/Port" ]
, th [] [ text "From" ]
[ tr []
[ th [ class "collapsible" ] [ text "Name" ]
, th [] [ text "Host/Port" ]
, th [] [ text "From" ]
]
]
, tbody []
(List.map (renderLine model) model.emailSettings)