Make long filenames break within the container

This commit is contained in:
Eike Kettner 2021-04-10 23:26:28 +02:00
parent a3949e9cd0
commit c07fd1e61d

View File

@ -129,7 +129,7 @@ attachHeader texts settings model _ attach =
in in
div [ class "flex flex-col sm:flex-row items-center w-full" ] div [ class "flex flex-col sm:flex-row items-center w-full" ]
[ attachSelectToggle False [ attachSelectToggle False
, div [ class "ml-2 text-base font-bold flex-grow w-full text-center sm:text-left" ] , div [ class "ml-2 text-base font-bold flex-grow w-full text-center sm:text-left break-all" ]
[ text attachName [ text attachName
, text " (" , text " ("
, text (Util.Size.bytesReadable Util.Size.B (toFloat attach.size)) , text (Util.Size.bytesReadable Util.Size.B (toFloat attach.size))