Skip to content

Commit 65bc27e

Browse files
shakaoVivian Liriknoll
authored
[stable7.2] Cherry-pick CSS fixes, skillmap metadata tag fix (microsoft#8537)
* Skillmap metadata tags are arrays (microsoft#8531) * Restore margin styles for scrolling modals (microsoft#8533) * Restore filelist, additional icon classes, sync mini sim visibility with tab state (microsoft#8532) * Restore filelist, full screen button to sandbox view * Add 'rotated', 'flipped' modifiers to icon allow list * Don't hide mini sim by default when loading a new header * Fix padding in home screen details view (microsoft#8534) Co-authored-by: Vivian Li <vivl@microsoft.com> Co-authored-by: Richard Knoll <riknoll@users.noreply.github.com>
1 parent 1f2fc9e commit 65bc27e

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

theme/home.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@
290290
border-radius: 0.5rem;
291291
background-color: @primaryColor;
292292
}
293-
.actions {
293+
.ui.grid.stackable .actions {
294294
padding-right: 4rem !important;
295-
position: absolute;
295+
position: relative;
296296
bottom: 0;
297297
text-align: right;
298298

theme/themes/pxt/modules/modal.overrides

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646

4747
.modals.dimmer .ui.scrolling.modal {
48-
margin-top: 3.5rem auto !important;
48+
margin: 3.5rem auto !important;
4949
top: auto;
5050
}
5151

theme/tutorial-sidebar.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
}
284284

285285
// Mini sim is visible when tab is hidden
286-
#root {
286+
#root.tabTutorial {
287287
&:not(.fullscreensim) .tab-simulator.tab-content.hidden {
288288
height: 0;
289289
padding: 0;
@@ -300,7 +300,7 @@
300300
}
301301
.tab-simulator.tab-content:not(.hidden) {
302302
.simPanel {
303-
.sidebar-button, .hidefullscreen { display: none !important; }
303+
.sidebar-button, .button.hidefullscreen { display: none !important; }
304304
}
305305
}
306306
}

webapp/src/app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,6 @@ export class ProjectView
15641564
private internalLoadHeaderAsync(h: pxt.workspace.Header, editorState?: pxt.editor.EditorState): Promise<void> {
15651565
pxt.debug(`loading ${h.id} (pxt v${h.targetVersion})`);
15661566
this.stopSimulator(true);
1567-
this.showMiniSim(false);
15681567
if (pxt.appTarget.simulator && pxt.appTarget.simulator.aspectRatio)
15691568
simulator.driver.preload(pxt.appTarget.simulator.aspectRatio);
15701569
this.clearSerial()

webapp/src/codecard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class CodeCardView extends data.Component<CodeCardProps, CodeCardState> {
128128
{(card.shortName || name || descriptions) ?
129129
<div className={`content ${this.props.tallCard? "tall" : ""}`}>
130130
{card.shortName || name ? <div className="header">{card.shortName || name}
131-
<div className="tags">{card.tags}</div>
131+
<div className="tags">{card.tags?.join(" ")}</div>
132132
</div> : null}
133133
{descriptions && descriptions.map((element, index) => {
134134
return <div key={`line${index}`} className={`description tall ${card.icon || card.iconContent || card.imageUrl ? "" : "long"}`}>{renderMd(element)}</div>

webapp/src/marked.tsx

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

webapp/src/sidepanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class Sidepanel extends data.Component<SidepanelProps, SidepanelState> {
6161
|| (this.props.tutorialOptions?.tutorial && props.tutorialOptions?.tutorial
6262
&& this.props.tutorialOptions.tutorial !== props.tutorialOptions.tutorial)) {
6363
this.showTutorialTab();
64-
} else if (!this.props.inHome && props.inHome) {
64+
} else if (!this.props.inHome && props.inHome
65+
|| (this.props.tutorialOptions && !props.tutorialOptions)) {
6566
this.showSimulatorTab();
6667
}
6768
}

0 commit comments

Comments
 (0)