From d4b67015b88fcc820691f7b06e73520dd1c0f99a Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 Sep 2023 10:22:48 +0100 Subject: [PATCH] Fix layout toggle on safari --- src/room/LayoutToggle.module.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/room/LayoutToggle.module.css b/src/room/LayoutToggle.module.css index fb95a716..3c93e742 100644 --- a/src/room/LayoutToggle.module.css +++ b/src/room/LayoutToggle.module.css @@ -24,8 +24,12 @@ limitations under the License. .toggle input { appearance: none; - /* Safari puts a margin on these, which is not removed via appearance: none */ + /* + * Safari puts a margin on these, which is not removed via appearance: none + * mobile safari also has them take up space in the DOM, so set width 0 + */ margin: 0; + width: 0; outline: none !important; }