Skip to content

Commit 723b571

Browse files
authored
Merge pull request #95 from mckervinc/mckervinc-patch-1
try and add a heuristic to isHorizontalScroll
2 parents 79c8bb2 + 04310b1 commit 723b571

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20.x"
20+
21+
- name: Install yarn
22+
run: npm install -g yarn
23+
24+
- name: Check cache for packages already installed
25+
uses: actions/cache@v3
26+
with:
27+
path: "**/node_modules"
28+
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
29+
30+
- name: Install dependencies
31+
run: yarn install
32+
33+
- name: Build package
34+
run: yarn build
35+
36+
- name: Publish to npm
37+
run: npm publish
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 1.2.5
4+
5+
_2025-03-31_
6+
7+
### Bugix
8+
9+
- on window resize, added padding to help with scroll flicker
10+
311
## 1.2.4
412

513
_2025-03-19_

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fluid-table",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "A React table inspired by @tanstack/react-virtual",
55
"author": "Mckervin Ceme <mckervinc@live.com>",
66
"license": "MIT",

src/components/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function BaseList<T>(
7575
});
7676

7777
// constants
78-
const isScrollHorizontal = (innerRef.current?.scrollWidth || 0) > innerWidth;
78+
const isScrollHorizontal = (innerRef.current?.scrollWidth || 0) + 16 > innerWidth;
7979
const items = virtualizer.getVirtualItems();
8080
const { fixedWidth, remainingCols } = widthConstants;
8181

0 commit comments

Comments
 (0)