Skip to content

Commit afd26f7

Browse files
committed
Show cell pending state
1 parent 0d5309d commit afd26f7

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"highlight.js": "11.10.0",
26-
"hightable": "0.5.4",
26+
"hightable": "0.5.5",
2727
"hyparquet": "1.5.0",
2828
"hyparquet-compressors": "0.1.4"
2929
},
@@ -34,12 +34,12 @@
3434
"@rollup/plugin-terser": "0.4.4",
3535
"@rollup/plugin-typescript": "12.1.1",
3636
"@testing-library/react": "16.0.1",
37-
"@types/node": "22.7.6",
37+
"@types/node": "22.7.7",
3838
"@types/react": "18.3.11",
3939
"@types/react-dom": "18.3.1",
40-
"@vitejs/plugin-react": "4.3.2",
40+
"@vitejs/plugin-react": "4.3.3",
4141
"@vitest/coverage-v8": "2.1.3",
42-
"eslint": "9.12.0",
42+
"eslint": "9.13.0",
4343
"globals": "15.11.0",
4444
"jsdom": "25.0.1",
4545
"react": "18.3.1",

public/HighTable.css

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,43 @@
118118
white-space: nowrap;
119119
}
120120

121-
/* pending state */
121+
/* pending cell state */
122+
.table td.pending {
123+
position: relative;
124+
}
125+
.table td.pending::after {
126+
content: '';
127+
position: absolute;
128+
top: 8px;
129+
left: 8px;
130+
right: 8px;
131+
bottom: 8px;
132+
border-radius: 4px;
133+
background: linear-gradient(
134+
60deg,
135+
rgba(0, 0, 0, 0.05) 25%,
136+
rgba(0, 0, 0, 0.08) 50%,
137+
rgba(0, 0, 0, 0.05) 75%
138+
);
139+
background-size: 120px 100%;
140+
animation: textshimmer 3s infinite linear;
141+
}
142+
/* stagger row shimmering */
143+
.table tr:nth-child(2n) td.pending::after { animation-delay: -1s; }
144+
.table tr:nth-child(2n+1) td.pending::after { animation-delay: -3s; }
145+
.table tr:nth-child(3n) td.pending::after { animation-delay: -2s; }
146+
.table tr:nth-child(5n) td.pending::after { animation-delay: -4s; }
147+
.table tr:nth-child(7n) td.pending::after { animation-delay: -1.5s; }
148+
@keyframes textshimmer {
149+
0% {
150+
background-position: -120px 0;
151+
}
152+
100% {
153+
background-position: 120px 0;
154+
}
155+
}
156+
157+
/* pending table state */
122158
.table th::before {
123159
content: '';
124160
position: absolute;

public/build/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/app.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)