Commit Graph
1517 Commits
Author SHA1 Message Date
Maximouse 123fb4ab59 Fix record modal being closed when dragging selection handles 2022-08-31 10:31:53 +02:00
Karishma Chadha 7dcaad2450 Merge pull request #4808 from nimiri/bugfix/number-in-variable-monitor-vertically-misaligned
Fix number in a variable monitor is vertically misaligned.
2022-03-22 17:19:41 -04:00
seotts a85d55e913 Make the hide option on montitors a bordered menu item 2022-02-01 15:50:47 -05:00
Sarah Otts b6d65106da Merge branch 'develop' into ctx-menu-hide-option-clean-diff 2022-02-01 15:25:37 -05:00
Karishma Chadha 87ea37f20b Change new prop isVariable to showListMessage to reflect the functionality of the prop 2021-12-22 14:28:31 -05:00
Karishma Chadha 874c2b04bd Merge branch 'develop' into this-is-list 2021-10-26 11:41:21 -04:00
Christopher Willis-Ford aac57420c6 shrink telemetry modal on smaller viewports
If the viewport height is smaller than 660, shrink the margin above &
below the telemetry modal.
If the viewport height is smaller than 540, also remove the image banner
at the top of the telemetry modal.
2021-05-19 11:43:49 -07:00
Ben Wheeler a36af11c0d added proptypes for asset 2021-05-11 15:38:09 -04:00
Ben Wheeler 51f32c7b0f add eslint comments 2021-05-11 15:25:36 -04:00
DD Liu 3757601317 Remove upload from camera 2021-05-03 12:28:28 -04:00
Christopher Willis-Ford 4ba1a065c7 add CSS fade to settingWasUpdated message 2021-01-25 15:16:26 -08:00
Christopher Willis-Ford 9636dd0442 adjust CSS names to follow our conventions 2021-01-25 15:16:26 -08:00
Christopher Willis-Ford 3c9c69f327 add 'Your setting was updated.' message 2021-01-25 15:16:26 -08:00
Christopher Willis-Ford d00e54ad26 fix radio buttons in RTL 2021-01-25 15:16:26 -08:00
Christopher Willis-Ford d8ec386706 restyle telemetry radio buttons like in WWW 2021-01-25 15:16:26 -08:00
Christopher Willis-Ford 0d0526600d use radio buttons for telemetry modal
This indicates the current state, lets the user exit without changing
state, and lets the user change state any time they want.

This change also improves RTL support in the telemetry modal.
2021-01-25 15:16:26 -08:00
Christopher Willis-Ford 0e973068a5 allow 'About' button to open a menu
If `onClickAbout` is a callback, or is not provided, then behavior is
the same as it was before this change. If the value is an array of
objects with `title` and `onClick` properties, the "About" button will
now open a menu with those items.

TODO: support `FormattedMessage` for the menu item titles.
2021-01-25 15:16:26 -08:00
Ray Schamp b52376ac2e Merge branch 'develop' into revert-5437-revert-4809-refactor-file-uploader 2021-01-11 14:49:04 -05:00
chrisgarrity a7235827b6 Revert "Remove autofocus from question input" 2020-11-18 16:24:50 -05:00
chrisgarrity 469dda2b16 Merge pull request #6230 from apple502j/patch-12
Remove autofocus from question input
2020-11-13 15:32:37 -05:00
chrisgarrity 270646e6cc Merge pull request #4969 from adroitwhiz/bmp-upload
Add BMP upload support.
2020-10-20 10:55:26 -04:00
Eric Rosenbaum 3fb6bd3b7a Merge pull request #5460 from ericrosenbaum/feature/full-library-update-schema
Use sb3 schema-compliant asset library data
2020-10-16 13:59:36 -04:00
apple502j 6b51fba950 Remove autofocus from question input 2020-10-01 22:23:33 +09:00
chrisgarrity ac57157bc1 Merge pull request #6127 from apple502j/localize-backpack-assets
Localize backpack item label
2020-09-28 11:54:12 -04:00
Eric Rosenbaum 1c37feb101 Display sprite lib icons without using type property 2020-09-09 12:39:06 -04:00
Eric Rosenbaum 8cb2ad5d9b Expect library item data that conforms to sb3 spec 2020-09-09 12:39:06 -04:00
apple502j 0a6aece8e5 Localize backpack item label 2020-08-23 16:46:55 +09:00
apple502j f4cd7feb72 Force LTR on drag-layer 2020-08-22 00:36:47 +09:00
adroitwhiz 02fa66b09d Fix scrollbars doubling up
I'm disappointed that this CSS ever worked
2020-06-24 20:04:23 -04:00
adroitwhiz 3c65986564 Move sprite highlight box back inside stage border
I'm not sure why I thought the sprite highlight box extended outside the
stage
2020-06-24 19:08:45 -04:00
adroitwhiz 99c291781c Replace Stage <div> with React.Fragment
The Stage component will sometimes have a color picker background,
which darkens the entire screen when the color picker loupe is active.
This color picker background element should appear in the same level as
the stage's wrapper, not inside of it. Previously, this was done by
wrapping both the stage's wrapper and color picker background in a div.
Now, they're both wrapped in a React.Fragment to avoid a completely
unnecessary div wrapper.
2020-06-19 14:46:27 -04:00
adroitwhiz 63d67c87fd Change how stage overlays & fullscreen are handled
This makes the layout behavior for stage overlays much more consistent.

Items whose overflow *should* be contained within the stage, like the
monitors and color picker loupe, are now placed within the "stage"
element directly.

Items whose overflow should *not* be contained within the stage, like
the target highlight box and dragged sprite, are now inside a "stage
overlays" container element, which is properly positioned (taking into
account the stage's border width) and sized.

This is made possible by unifying stage layout across both fullscreen &
non-fullscreen modes via moving the fullscreen overlay styles to the
StageWrapper component. Whereas previously, the stage overlays were
positioned *outside* of the stage in fullscreen and had to reposition
themselves correctly, they are now positioned the same in both
fullscreen and regular modes.
2020-06-19 14:41:28 -04:00
adroitwhiz b02595922e Replace hack from #2354 with flexbox solution
The stage + target pane wrapper's width must be constrained to that of
the stage, even when there are lots of sprite tiles. Otherwise, once you
add enough sprites, it'll grow horizontally past the stage size. The old
code set its maximum width explicitly to stop that from happening, but
it can also be done more elegantly with the flex-basis property.
This also has the benefit of taking the stage border width into account.
2020-06-19 14:12:44 -04:00
adroitwhiz 5c0e7737d6 Merge pull request #5704 from adroitwhiz/target-highlight-border-box
Remove box-sizing: content-box from sprite highlight box CSS
2020-06-02 11:05:00 -04:00
Benjamin Wheeler d4a77c6f38 Merge pull request #4916 from apple502j/patch-10
Add pointer-events to alert container CSS
2020-05-27 13:55:36 -04:00
Florrie da4080b6b8 "Hide" monitor context menu option 2020-05-22 14:41:01 -04:00
Chris Willis-Ford 952a584d74 Merge pull request #5434 from cwillisf/add-about-menu-button
Add about menu button
2020-05-20 11:15:51 -07:00
Chris Willis-Ford 886e2ebb8f Merge pull request #5451 from cwillisf/telemetry-onShowPrivacyPolicy
add hook on telemetry dialog for displaying privacy policy
2020-05-15 16:15:01 -07:00
adroitwhiz 266350153e Remove box-sizing: content-box on sprite highlight 2020-05-05 08:34:49 -04:00
apple502j b559c7e3b7 Use correct message for global list 2020-02-17 15:51:38 +09:00
Christopher Willis-Ford 89a748dd2b add hook on telemetry dialog for displaying privacy policy 2020-02-11 10:11:23 -08:00
Benjamin Wheeler d82ed25b8a Revert "Revert "refactor SB* file uploader into top-level HOC"" 2020-02-11 12:05:36 -05:00
Christopher Willis-Ford 2ebcd850d6 add unit tests for About button on menu bar 2020-02-10 13:49:54 -08:00
Christopher Willis-Ford 9d307f0e08 show clickable 'About' button if handler is present 2020-02-10 13:49:54 -08:00
Christopher Willis-Ford fde7349b2b optimize About icon SVG 2020-02-10 13:49:54 -08:00
Benjamin Wheeler af4ad81811 Revert "refactor SB* file uploader into top-level HOC" 2020-02-06 11:33:03 -05:00
Christopher Willis-Ford 8690b696a5 add 'About' icon from @carljbowman 2020-02-05 15:59:34 -08:00
Ben Wheeler f2291d963c continuing sb file uploader refactor into hoc
draft of refactor to make custom confirm modal work for upload; need to further edit sb-file-uploader

Add support for custom confirm modal to sb-file-uploader

Show custom confirm modal when confirming project upload

got custom upload refactor of file upload working, and tested failure case

cleaned up debug code, make project file upload work

simplified logic around canceling file upload

removed old sb-file-uploader.jsx; fixed linter errors

reverted two components to use old strings, not shared

(can do that refactor another time)

removed unnecessary confirm container

removed stray comment

moved, updated sb file uploader tests, related project state tests

removed custom modal, to reduce scope of changes

sb file uploader test uses intl
2020-01-28 14:57:09 -05:00
adroitwhiz 9dcaa0985f Don't align-items: center in stage-overlay-content 2019-11-01 14:33:28 -04:00
Ray Schamp 5253554fff Merge pull request #4854 from towerofnix/list-whitespace
Always display whitespace in list monitors
2019-10-22 09:46:54 -04:00