From 795bfb2f95bff5ca13a54b4d784bf58e53fb07f1 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Fri, 15 Aug 2025 14:12:33 +0800 Subject: [PATCH] fix(ios): enable horizontal scroll for database (#13494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close [BS-3625](https://linear.app/affine-design/issue/BS-3625/移动端database-table-view无法横向滚动) #### PR Dependency Tree * **PR #13494** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) ## Summary by CodeRabbit * **Bug Fixes** * Improved iOS mobile table view scrolling: horizontal overflow is no longer forcibly hidden, preventing clipped content and enabling smoother horizontal navigation. * Users can now access columns that previously appeared truncated on narrow screens. * Vertical scrolling behavior remains unchanged. * No impact on non‑iOS devices. --- .../src/view-presets/table/mobile/table-view-style.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/blocksuite/affine/data-view/src/view-presets/table/mobile/table-view-style.ts b/blocksuite/affine/data-view/src/view-presets/table/mobile/table-view-style.ts index d419bd494..a3a284583 100644 --- a/blocksuite/affine/data-view/src/view-presets/table/mobile/table-view-style.ts +++ b/blocksuite/affine/data-view/src/view-presets/table/mobile/table-view-style.ts @@ -1,4 +1,3 @@ -import { IS_IOS } from '@blocksuite/global/env'; import { css } from '@emotion/css'; import { cssVarV2 } from '@toeverything/theme/v2'; @@ -6,12 +5,6 @@ export const mobileTableViewWrapper = css({ position: 'relative', width: '100%', paddingBottom: '4px', - /** - * Disable horizontal scrolling to prevent crashes on iOS Safari - * See https://github.com/toeverything/AFFiNE/pull/12203 - * and https://github.com/toeverything/blocksuite/pull/8784 - */ - overflowX: IS_IOS ? 'hidden' : undefined, overflowY: 'hidden', });