reg-viz / reg-cli-report-ui Goto Github PK
View Code? Open in Web Editor NEW:gem: New face of reg-cli Report UI.
License: MIT License
:gem: New face of reg-cli Report UI.
License: MIT License
Smooth scrolling adds an annoying and unnecessary delay when dealing with hundreds of regression screenshots. Just take me directly to the screenshot I want to check out.
Disable smooth scrolling in reg-cli-report-ui.
diff --git a/src/components/VGrid/VGrid.tsx b/src/components/VGrid/VGrid.tsx
index 5953c3a..8de2cc9 100644
--- a/src/components/VGrid/VGrid.tsx
+++ b/src/components/VGrid/VGrid.tsx
@@ -168,7 +168,7 @@ export class VGrid<T, K extends keyof T> extends React.Component<Props<T, K>, St
if (hit) {
// Notify scrolling to the context because we should not check the hash after the scrolling.
this.context.consume();
- setTimeout(() => this.scrollTo(hit.offsetIndex, true));
+ setTimeout(() => this.scrollTo(hit.offsetIndex));
}
}
}
@@ -253,7 +253,7 @@ export class VGrid<T, K extends keyof T> extends React.Component<Props<T, K>, St
this.updateCurrentOffsetIndex();
}
- private scrollTo(offsetIndex: number, instant = false) {
+ private scrollTo(offsetIndex: number) {
const currentTop = scrollY;
const top = this.calculateClientOffsetTop(offsetIndex);
const threshold = this.state.visibleItemsLength * this.rowHeightUnit * 1;
@@ -271,7 +271,6 @@ export class VGrid<T, K extends keyof T> extends React.Component<Props<T, K>, St
requestAnimationFrame(rafCb);
scroll({
top,
- behavior: instant ? (('instant' as unknown) as any) : 'smooth',
});
}
diff --git a/src/styles/global-styles.ts b/src/styles/global-styles.ts
index c6d1fbd..57bc0bf 100644
--- a/src/styles/global-styles.ts
+++ b/src/styles/global-styles.ts
@@ -16,7 +16,6 @@ export const GlobalStyle = createGlobalStyle`
-ms-text-size-adjust: 100%;
font-family: ${FontFamily.SANS_SERIF};
line-height: ${LineHeight.LARGE};
- scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
'j' or 'k' letter are not reflected as the text value.
k
key twicekeyboard shortcut must not interrupt inputting search text.
A clear and concise description of what you expected to happen.
A clear and concise description of what you actual to happen.
If applicable, add screenshots to help explain your problem.
The filtering makes no sense at the moment. I have the following tree structure
desktop/Invite handling/screen
mobile/Invite handling/screen
Searching for invite
only showed the mobile
branch, since the leading i
is matched in mobile
but ignored in the actual key I'm looking for (Invite handling
).
Please choose a consistent filtering style: Either case sensitive + no fuzzy or case insensitive + fuzzy.
If ximgdiff
is disabled in regconfig.json
, filtering in the generated HTML report is not working.
Check out reg-cli-report-ui
, disable ximgdiffConfig in develop/index.html
ximgdiffConfig: { enabled: false, workerUrl: './worker.js' },
Start the dev env via yarn start
. Filtering is not working.
reg-cli-report-ui/src/worker-client.ts
Lines 44 to 46 in 73849df
this._worker
is only created if ximg diff is enabled. Since this._worker
is used to relay the filtering
messages, the filtering is not working if XIMGDiffConfig.enabled = false
Filtering is working even with ximgdiff disabled.
Filtering is not working with ximgdiff disabled.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.