Skip to content

Commit

Permalink
fix(database): crash in edgeless on mobile safari (#8784)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlewind authored Nov 21, 2024
1 parent ff37d44 commit aba81a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/affine/data-view/src/view-presets/table/table-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ const styles = css`
overflow-y: hidden;
}
/* Disable horizontal scrolling to prevent crashes on iOS Safari */
affine-edgeless-root .affine-database-block-table {
@media (pointer: coarse) {
overflow: hidden;
}
@media (pointer: fine) {
overflow-x: scroll;
overflow-y: hidden;
}
}
.affine-database-block-table:hover {
padding-bottom: 0px;
}
Expand Down

0 comments on commit aba81a8

Please sign in to comment.