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

@ -44,16 +44,18 @@ view _ items =
div []
[ table [ class "ui very basic center aligned table" ]
[ thead []
[ th [ class "collapsing" ] []
, th [ class "collapsing" ]
[ i [ class "check icon" ] []
[ tr []
[ th [ class "collapsing" ] []
, th [ class "collapsing" ]
[ i [ class "check icon" ] []
]
, th [] [ text "Schedule" ]
, th [] [ text "Connection" ]
, th [] [ text "Folders" ]
, th [] [ text "Received Since" ]
, th [] [ text "Target" ]
, th [] [ text "Delete" ]
]
, th [] [ text "Schedule" ]
, th [] [ text "Connection" ]
, th [] [ text "Folders" ]
, th [] [ text "Received Since" ]
, th [] [ text "Target" ]
, th [] [ text "Delete" ]
]
, tbody []
(List.map viewItem items)