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(channels): float the touch jump-to-latest button on iOS (#8959)

teo368b6786445d
diff --git a/apps/web/src/components/app/mobile/MobileDockIsland.tsx b/apps/web/src/components/app/mobile/MobileDockIsland.tsx
index 0b52e368b5..09cb8cb65d 100644
--- a/apps/web/src/components/app/mobile/MobileDockIsland.tsx
+++ b/apps/web/src/components/app/mobile/MobileDockIsland.tsx
@@ -18,7 +18,10 @@ import type { JSX, ParentProps } from 'solid-js';
*
* The container re-enables pointer events for its children (the float-region
* host is pointer-transparent); layout beyond the pill itself — height,
- * growth, distribution — is the caller's, via `class`.
+ * growth, distribution — is the caller's, via `class`. Place a floating
+ * island from a wrapper element, not with `absolute`/`fixed` on the island:
+ * the iOS press styles in index.css pin it to `position: relative`, unlayered,
+ * so they beat any positioning utility.
*/
export function MobileDockIsland(
props: ParentProps<{
diff --git a/apps/web/src/features/channel/Channel/ScrollToBottomOverlay.tsx b/apps/web/src/features/channel/Channel/ScrollToBottomOverlay.tsx
index 5202e170dd..16373269da 100644
--- a/apps/web/src/features/channel/Channel/ScrollToBottomOverlay.tsx
+++ b/apps/web/src/features/channel/Channel/ScrollToBottomOverlay.tsx
@@ -46,17 +46,20 @@ export function ScrollToBottomOverlay(props: ScrollToBottomOverlayProps) {
</button>
}
>
- <MobileDockIsland
+ <div
+ data-scroll-to-bottom
class="absolute z-10 right-[calc(var(--safe-right,0px)+var(--mobile-chrome-gutter))]"
style={{ bottom: `${FloatRegions.hostHeight() + 12}px` }}
>
- <MobileDockButton
- icon={ArrowDown}
- ariaLabel="Jump to latest"
- data-keep-keyboard
- onClick={() => props.onScrollToBottom('smooth')}
- />
- </MobileDockIsland>
+ <MobileDockIsland>
+ <MobileDockButton
+ icon={ArrowDown}
+ ariaLabel="Jump to latest"
+ data-keep-keyboard
+ onClick={() => props.onScrollToBottom('smooth')}
+ />
+ </MobileDockIsland>
+ </div>
</Show>
</Layer>
</Show>