From 07edaaaf5e7a3f848c8020258bdf9fd6ab2c6c88 Mon Sep 17 00:00:00 2001
From: Eike Kettner <eike.kettner@posteo.de>
Date: Mon, 15 Feb 2021 00:11:37 +0100
Subject: [PATCH] Try fix attachment selection for firefox

It works great in chromium, in firefox the border is a bit off.
---
 .../webapp/src/main/elm/Comp/ItemDetail/SingleAttachment.elm  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/webapp/src/main/elm/Comp/ItemDetail/SingleAttachment.elm b/modules/webapp/src/main/elm/Comp/ItemDetail/SingleAttachment.elm
index f3d790fc..63ec841b 100644
--- a/modules/webapp/src/main/elm/Comp/ItemDetail/SingleAttachment.elm
+++ b/modules/webapp/src/main/elm/Comp/ItemDetail/SingleAttachment.elm
@@ -312,7 +312,7 @@ menuItem model pos attach =
             , ( "dark:border-bluegray-600", pos /= 0 )
             ]
                 ++ highlight
-         , class "block flex-col relative border rounded px-1 py-1 mr-2"
+         , class "flex flex-col relative border rounded px-1 py-1 mr-2"
          , class " hover:shadow dark:hover:border-bluegray-500"
          , href "#"
          , onClick (SetActiveAttachment pos)
@@ -328,7 +328,7 @@ menuItem model pos attach =
             ]
             [ i [ class "fa fa-check-circle ml-1" ] []
             ]
-        , div [ class "" ]
+        , div [ class "flex-grow" ]
             [ img
                 [ src (Api.attachmentPreviewURL attach.id)
                 , class "block w-20 mx-auto"