Skip to content

Commit 2f67379

Browse files
committed
feat: minor thumbnail update tweaks
1 parent 97385d0 commit 2f67379

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/scratch-gui/src/components/gui/gui.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ const GUIComponent = props => {
185185
loading={loading}
186186
manuallySaveThumbnails={
187187
manuallySaveThumbnails &&
188-
isPlayerOnly &&
189188
userOwnsProject
190189
}
191190
onUpdateProjectThumbnail={onUpdateProjectThumbnail}

packages/scratch-gui/src/components/stage-header/stage-header.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,8 @@
9393
color: $ui-white;
9494
background-color: $motion-primary;
9595
}
96+
97+
.setThumbnailButton:active {
98+
filter: brightness(90%);
99+
}
96100
}

packages/scratch-gui/src/components/stage-header/stage-header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import scratchLogo from '../menu-bar/scratch-logo.svg';
2020
import styles from './stage-header.css';
2121
import {storeProjectThumbnail} from '../../lib/store-project-thumbnail.js';
2222
import dataURItoBlob from '../../lib/data-uri-to-blob.js';
23-
import debounce from 'lodash.debounce';
23+
import throttle from 'lodash.throttle';
2424

2525
const messages = defineMessages({
2626
largeStageSizeMessage: {
@@ -75,7 +75,7 @@ const StageHeaderComponent = function (props) {
7575
let header = null;
7676

7777
const onUpdateThumbnail = useCallback(
78-
debounce(
78+
throttle(
7979
() => {
8080
if (!onUpdateProjectThumbnail) {
8181
return;

0 commit comments

Comments
 (0)