From b858237db229f8136fe4d5af5f3594120eef16a7 Mon Sep 17 00:00:00 2001 From: Felix Springer Date: Tue, 22 Oct 2024 22:07:29 +0200 Subject: [PATCH] Ignore clicking outside of popup to sign in. --- frontend/source/Mensam/Element/Screen.elm | 1 - frontend/source/Mensam/Main.elm | 44 ++++++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/frontend/source/Mensam/Element/Screen.elm b/frontend/source/Mensam/Element/Screen.elm index 5b54b06c..81794398 100644 --- a/frontend/source/Mensam/Element/Screen.elm +++ b/frontend/source/Mensam/Element/Screen.elm @@ -40,7 +40,6 @@ element screen = , Element.height <| Element.px 30 , Element.alignTop , Element.Events.Pointer.onClick <| \_ -> screen.closePopup - , Element.htmlAttribute <| Html.Attributes.style "filter" "blur(0)" ] [] , Element.row diff --git a/frontend/source/Mensam/Main.elm b/frontend/source/Mensam/Main.elm index a3b6f433..87bc6887 100644 --- a/frontend/source/Mensam/Main.elm +++ b/frontend/source/Mensam/Main.elm @@ -3,6 +3,7 @@ module Mensam.Main exposing (..) import Browser import Browser.Navigation import Element +import Element.Events.Pointer import Element.Font import Html.Attributes import Http @@ -2609,7 +2610,48 @@ view (MkModel model) = Element.none Just el -> - el + Element.column + [ Element.width Element.fill + , Element.height Element.fill + , Element.padding 0 + , Element.spacing 0 + ] + [ Element.row + [ Element.width Element.fill + , Element.height <| Element.px 170 + , Element.alignTop + , Element.Events.Pointer.onClick <| \_ -> EmptyMessage + ] + [] + , Element.row + [ Element.width Element.fill + , Element.padding 0 + , Element.spacing 0 + ] + [ Element.column + [ Element.width Element.fill + , Element.height Element.fill + , Element.alignLeft + , Element.Events.Pointer.onClick <| \_ -> EmptyMessage + ] + [] + , el + , Element.column + [ Element.width Element.fill + , Element.height Element.fill + , Element.alignRight + , Element.Events.Pointer.onClick <| \_ -> EmptyMessage + ] + [] + ] + , Element.row + [ Element.width Element.fill + , Element.height Element.fill + , Element.alignBottom + , Element.Events.Pointer.onClick <| \_ -> EmptyMessage + ] + [] + ] ] <| Element.el