mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
web: move Percy-specific CSS to Percy config file (#18551)
Percy is [failing the build intermittently](https://percy.io/Sourcegraph/Sourcegraph/builds/8974887/changed/508960393?browser=chrome&browser_ids=16&subcategories=unreviewed%2Cchanges_requested&viewLayout=side-by-side&viewMode=new&width=1920&widths=960%2C1920) due to rendering the Monaco cursor. We were previously successfully hiding the Monaco cursor using `@media only percy` CSS but that isn't working anymore. I have opened a support request with the Percy/Browserstack team but I'm trying this in the meantime to see if it resolves our issue. Percy documentation: https://docs.percy.io/docs/percy-specific-css
This commit is contained in:
parent
f42aa1f769
commit
48b8711cbd
@ -3,3 +3,8 @@ snapshot:
|
||||
widths:
|
||||
- 960 # Half-width browser window (e.g. docked to the side next to an editor)
|
||||
- 1920 # Full-width browser window
|
||||
percy-css: |
|
||||
.percy-hide,
|
||||
.monaco-editor .cursor {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
@ -72,14 +72,6 @@ body,
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
// Hide the given element from Percy.
|
||||
.percy-hide,
|
||||
.monaco-editor .cursor {
|
||||
@media only percy {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Pages
|
||||
@import './Layout';
|
||||
@import './api/ApiConsole';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user