From dd1cd56a87b065638f4bd8fc4c121bbd6ee4f18b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 28 Feb 2023 16:56:30 +0800 Subject: [PATCH] Retry this again max(0, env) doesn't work at all lolol --- src/app.css | 4 ++-- src/components/status.jsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app.css b/src/app.css index fbdad1f9..c4fccc00 100644 --- a/src/app.css +++ b/src/app.css @@ -1044,8 +1044,8 @@ body:has(.status-deck) .media-post-link { .szh-menu-container:has(.szh-menu--state-open) { inset: 0; - inset: max(0, env(safe-area-inset-top)) max(0, env(safe-area-inset-right)) - max(0, env(safe-area-inset-bottom)) max(0, env(safe-area-inset-left)); + inset: env(safe-area-inset-top) env(safe-area-inset-right) + env(safe-area-inset-bottom) env(safe-area-inset-left); } .szh-menu { padding: 8px 0; diff --git a/src/components/status.jsx b/src/components/status.jsx index 600eac2d..b8f583d5 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -565,11 +565,11 @@ function Status({ target: document.querySelector('.status-deck') || document.body, }} - // containerProps={{ - // onClick: () => { - // menuInstanceRef.current?.closeMenu?.(); - // }, - // }} + containerProps={{ + onClick: () => { + menuInstanceRef.current?.closeMenu?.(); + }, + }} align="end" offsetY={4} overflow="auto"