pxt-core 9.0.7 → 9.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "9.0.7",
3
+ "version": "9.0.8",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -71,7 +71,7 @@ export const VerticalResizeContainer = (props: VerticalResizeContainerProps) =>
71
71
 
72
72
  const computedStyle = getComputedStyle(containerRef?.current);
73
73
  const containerHeight = parseInt(computedStyle.height) - parseInt(computedStyle.borderWidth);
74
- if (e.nativeEvent.offsetY > containerHeight - RESIZABLE_BORDER_SIZE - 4) {
74
+ if (e.nativeEvent.offsetY < containerHeight && e.nativeEvent.offsetY > containerHeight - RESIZABLE_BORDER_SIZE - 4) {
75
75
  document.querySelector("body")?.classList.add("cursor-resize");
76
76
  document.addEventListener("pointermove", resize, false);
77
77
  document.addEventListener("pointerup", onPointerUp, false);
package/theme/common.less CHANGED
@@ -1471,6 +1471,10 @@ p.ui.font.small {
1471
1471
  }
1472
1472
  }
1473
1473
 
1474
+ .sandbox .simPanel .simtoolbar {
1475
+ display: none;
1476
+ }
1477
+
1474
1478
  /***********************************
1475
1479
  Headless Simtoolbar (Minecraft)
1476
1480
  ************************************/
@@ -1693,7 +1697,7 @@ p.ui.font.small {
1693
1697
  Mini sim view
1694
1698
  *******************************/
1695
1699
 
1696
- #root.miniSim:not(.fullscreensim) {
1700
+ #root.miniSim:not(.fullscreensim, .sandbox) {
1697
1701
  /* Layout */
1698
1702
  .simPanel.ui.items {
1699
1703
  position: fixed;
@@ -2105,7 +2109,7 @@ p.ui.font.small {
2105
2109
  display: inline-block!important;
2106
2110
  }
2107
2111
 
2108
- #root.miniSim:not(.fullscreensim) {
2112
+ #root.miniSim:not(.fullscreensim, .sandbox) {
2109
2113
  div.simframe {
2110
2114
  margin-bottom: -0.4rem
2111
2115
  }
@@ -2171,6 +2175,7 @@ p.ui.font.small {
2171
2175
  .fullscreensim .simtoolbar .ui.button {
2172
2176
  font-size: 1rem;
2173
2177
  }
2178
+
2174
2179
  .collapsedEditorTools #mobiletogglesim {
2175
2180
  bottom: @editorToolsCollapsedMobileHeight;
2176
2181
  }
@@ -2392,12 +2397,12 @@ button.ui.button.hostmultiplayergame-button {
2392
2397
  --multiplayer-presence-icon-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='29' fill='%234DA64D'%3E%3Cpath d='M12.754 14.686a7 7 0 100-14 7 7 0 000 14zm-8.5 2a3.5 3.5 0 00-3.5 3.5v.5c0 2.393 1.523 4.417 3.685 5.793 2.174 1.384 5.117 2.207 8.315 2.207 3.199 0 6.141-.823 8.315-2.206 2.163-1.377 3.685-3.4 3.685-5.794v-.5a3.5 3.5 0 00-3.5-3.5h-17z'/%3E%3C/svg%3E");
2393
2398
  }
2394
2399
 
2395
- #root:not(.fullscreensim) .multiplayer-presence {
2400
+ #root:not(.fullscreensim, .sandbox) .multiplayer-presence {
2396
2401
  margin: 0;
2397
2402
  margin-bottom: -.5rem;
2398
2403
  }
2399
2404
 
2400
- .miniSim:not(.fullscreensim):not(.tabTutorial) .multiplayer-presence {
2405
+ .miniSim:not(.fullscreensim, .sandbox):not(.tabTutorial) .multiplayer-presence {
2401
2406
  display: none;
2402
2407
  }
2403
2408