Add a temporary hack to make text selection disabled on firefox

This commit is contained in:
Emi Simpson 2023-07-04 23:28:48 -04:00
parent 6eaeff8ca8
commit 63fa164db7
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,11 @@ viewColumns : Maybe HeldTile -> Array Column -> Html Msg
viewColumns heldTile columns =
Array.indexedMap (viewColumn heldTile) columns
|> Array.toList
|> section [class "columns"]
|> section
[ class "columns"
-- Temporary hack while firefox's :has() selector is broken
, attributeIf (isJust heldTile) <| style "user-select" "none"
]
viewFloatyTile : (Int, Int) -> HeldTile -> Html Msg