Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[ios]: drawers fit content (#2476)

Peter Chinmancd3c08c7408a
diff --git a/js/app/packages/app/component/mobile/MobileDrawer.tsx b/js/app/packages/app/component/mobile/MobileDrawer.tsx
index 1431f19545..1dba51d0ba 100644
--- a/js/app/packages/app/component/mobile/MobileDrawer.tsx
+++ b/js/app/packages/app/component/mobile/MobileDrawer.tsx
@@ -64,9 +64,9 @@ function MobileDrawerContent(props: ComponentProps<typeof Drawer.Content>) {
if (isInputEl(e.target)) setInputFocused(false);
}}
class={cn(
- 'bottom-(--virtual-keyboard-height) fixed left-0 right-0 z-modal bg-page rounded-t-2xl flex flex-col h-[80vh] data-transitioning:transition-transform data-transitioning:duration-200 ease-out',
+ 'bottom-(--virtual-keyboard-height) fixed left-0 right-0 z-modal bg-page rounded-t-2xl flex flex-col max-h-[80vh] data-transitioning:transition-transform data-transitioning:duration-200 ease-out',
inputFocused()
- ? 'pb-0 h-[calc(80vh-var(--virtual-keyboard-height))]'
+ ? 'pb-0 max-h-[calc(80vh-var(--virtual-keyboard-height))] overflow-y-auto'
: 'pb-(--safe-bottom)',
local.class
)}
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx
index 12690f5f87..cf3142ca64 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/mobile-filter-drawer.tsx
@@ -197,7 +197,7 @@ export const MobileFilterDrawer = () => {
<MobileDrawer.Portal>
<MobileDrawer.Overlay class="fixed inset-0 z-modal-overlay bg-modal-overlay pattern-diagonal-4 pattern-edge-muted" />
- <MobileDrawer.Content aria-label="Filters">
+ <MobileDrawer.Content aria-label="Filters" class="h-[80vh]">
{/* Drag handle */}
<div class="flex justify-center pt-3 pb-1 shrink-0">
<div class="w-10 h-1 rounded-full bg-edge-muted" />
diff --git a/js/app/packages/channel/Mobile/ActionDrawer.tsx b/js/app/packages/channel/Mobile/ActionDrawer.tsx
index 16a1d79a91..244d199a50 100644
--- a/js/app/packages/channel/Mobile/ActionDrawer.tsx
+++ b/js/app/packages/channel/Mobile/ActionDrawer.tsx
@@ -179,7 +179,10 @@ export function ActionDrawer() {
>
<MobileDrawer.Portal>
<MobileDrawer.Overlay class="fixed inset-0 z-modal-overlay bg-modal-overlay pattern-diagonal-4 pattern-edge-muted" />
- <MobileDrawer.Content aria-label="Message actions">
+ <MobileDrawer.Content
+ aria-label="Message actions"
+ class={showEmojiSearch() ? 'h-[80vh]' : undefined}
+ >
{/* Drag handle */}
<div class="flex justify-center pt-3 pb-2 shrink-0">
<div class="w-10 h-1 rounded-full bg-edge-muted" />