From 269c4ec18fb69cc07c85b91337c0a57803eb559e Mon Sep 17 00:00:00 2001 From: Felix Springer Date: Sat, 12 Oct 2024 11:55:54 +0200 Subject: [PATCH] Fix chromium scrolling issue. This thread revolves around this issue with elm-ui: https://github.com/mdgriffith/elm-ui/issues/367 --- frontend/source/Mensam/Screen/Dashboard.elm | 2 ++ frontend/source/Mensam/Screen/Reservations.elm | 1 + frontend/source/Mensam/Screen/Space.elm | 1 + frontend/source/Mensam/Screen/Space/Desks.elm | 1 + frontend/source/Mensam/Screen/Space/Role.elm | 2 ++ frontend/source/Mensam/Screen/Space/Roles.elm | 1 + frontend/source/Mensam/Screen/Space/Settings.elm | 1 + frontend/source/Mensam/Screen/Space/Users.elm | 2 ++ frontend/source/Mensam/Screen/Spaces.elm | 1 + frontend/source/Mensam/Widget/Timezone.elm | 1 + 10 files changed, 13 insertions(+) diff --git a/frontend/source/Mensam/Screen/Dashboard.elm b/frontend/source/Mensam/Screen/Dashboard.elm index 2c15b4be..56c9766f 100644 --- a/frontend/source/Mensam/Screen/Dashboard.elm +++ b/frontend/source/Mensam/Screen/Dashboard.elm @@ -160,6 +160,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.spaces , columns = @@ -367,6 +368,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.reservations , columns = diff --git a/frontend/source/Mensam/Screen/Reservations.elm b/frontend/source/Mensam/Screen/Reservations.elm index 29c9a8be..3fd1d0da 100644 --- a/frontend/source/Mensam/Screen/Reservations.elm +++ b/frontend/source/Mensam/Screen/Reservations.elm @@ -200,6 +200,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.reservations , columns = diff --git a/frontend/source/Mensam/Screen/Space.elm b/frontend/source/Mensam/Screen/Space.elm index 0175816e..4e4ea1da 100644 --- a/frontend/source/Mensam/Screen/Space.elm +++ b/frontend/source/Mensam/Screen/Space.elm @@ -759,6 +759,7 @@ deskTimetable model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" , Element.htmlAttribute <| Html.Attributes.style "user-select" "none" ] { data = model.desks diff --git a/frontend/source/Mensam/Screen/Space/Desks.elm b/frontend/source/Mensam/Screen/Space/Desks.elm index 9c150529..8079ead9 100644 --- a/frontend/source/Mensam/Screen/Space/Desks.elm +++ b/frontend/source/Mensam/Screen/Space/Desks.elm @@ -112,6 +112,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.desks , columns = diff --git a/frontend/source/Mensam/Screen/Space/Role.elm b/frontend/source/Mensam/Screen/Space/Role.elm index 1821f5d4..8f15fc60 100644 --- a/frontend/source/Mensam/Screen/Space/Role.elm +++ b/frontend/source/Mensam/Screen/Space/Role.elm @@ -95,6 +95,7 @@ element model = , Element.height Element.fill , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] [ Element.row [ Element.width Element.fill @@ -460,6 +461,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = List.filter (\role -> role.id /= model.role.id) model.roles , columns = diff --git a/frontend/source/Mensam/Screen/Space/Roles.elm b/frontend/source/Mensam/Screen/Space/Roles.elm index 7f5516bd..6b59b7db 100644 --- a/frontend/source/Mensam/Screen/Space/Roles.elm +++ b/frontend/source/Mensam/Screen/Space/Roles.elm @@ -110,6 +110,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.roles , columns = diff --git a/frontend/source/Mensam/Screen/Space/Settings.elm b/frontend/source/Mensam/Screen/Space/Settings.elm index b57f2e15..0dc21660 100644 --- a/frontend/source/Mensam/Screen/Space/Settings.elm +++ b/frontend/source/Mensam/Screen/Space/Settings.elm @@ -253,6 +253,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = Mensam.Time.allTimezones , columns = diff --git a/frontend/source/Mensam/Screen/Space/Users.elm b/frontend/source/Mensam/Screen/Space/Users.elm index 54a2980c..c375246b 100644 --- a/frontend/source/Mensam/Screen/Space/Users.elm +++ b/frontend/source/Mensam/Screen/Space/Users.elm @@ -127,6 +127,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = Dict.values model.users , columns = @@ -417,6 +418,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.roles , columns = diff --git a/frontend/source/Mensam/Screen/Spaces.elm b/frontend/source/Mensam/Screen/Spaces.elm index 3b93fd34..167826c6 100644 --- a/frontend/source/Mensam/Screen/Spaces.elm +++ b/frontend/source/Mensam/Screen/Spaces.elm @@ -99,6 +99,7 @@ element model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = model.spaces , columns = diff --git a/frontend/source/Mensam/Widget/Timezone.elm b/frontend/source/Mensam/Widget/Timezone.elm index d9b8d800..1ae408b1 100644 --- a/frontend/source/Mensam/Widget/Timezone.elm +++ b/frontend/source/Mensam/Widget/Timezone.elm @@ -44,6 +44,7 @@ elementPickTimezone model = , Element.Font.size 16 , Element.clipY , Element.scrollbarY + , Element.htmlAttribute <| Html.Attributes.style "contain" "size" ] { data = Mensam.Time.allTimezones , columns =