mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 05:58:56 +08:00
fix(editor): database scroll regression on mobile safari (#12203)
This won't affect desktop behavior, since the `MobileDataViewTable` is a standalone entry different with the default `DataViewTable`. Horizontal scrolling needs to be disabled to prevent Safari render bug. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated table view styling on mobile to disable horizontal scrolling, improving stability on iOS Safari. - Removed platform-specific horizontal scrolling behavior for tables on desktop for a consistent experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -29,7 +29,12 @@ export class MobileDataViewTable extends DataViewBase<
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-bottom: 4px;
|
||||
overflow-x: scroll;
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user