Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit d5e01c2

Browse files
committed
screenshot full and screenshot repl should hide themselves from screenshot
Fixes #827
1 parent 3ef9748 commit d5e01c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/plugins/ui/commands/screenshot.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,18 @@ const selectors = {
6262
* Sizing elements to fit prior to capturing them
6363
*
6464
*/
65+
const hideCurrentReplBlock = [{ selector: '#main-repl .repl-block.processing', property: 'display', value: 'none' }]
6566
const squishers = {
6667
sidecar: [
6768
{ selector: 'main', property: 'align-items', value: 'flex-start' },
6869
{ selector: '#sidecar', property: 'height', value: 'initial' },
6970
{ selector: 'sidecar .custom-content', property: 'flex', value: 'initial' },
7071
{ selector: 'sidecar .sidecar-content', property: 'flex', value: 'initial' }
71-
]
72+
],
73+
74+
// screenshot full and repl should remove the last command from the screenshot, so that "screenshot full" doesn't show
75+
full: hideCurrentReplBlock,
76+
repl: hideCurrentReplBlock
7277
}
7378
const _squish = (which, op) => {
7479
const squisher = squishers[which]

0 commit comments

Comments
 (0)