Skip to content

Commit

Permalink
Don't show project footer in non-editable tutorial mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Apr 6, 2024
1 parent 4984c87 commit 4af3572
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http:
- Added emoji variation selectors to `PhraseView` to ensure proper rendering of color emoji on WebKit browsers.
- Empty list values should have an undefined item type, not a never type.
- Fixed types of Webpage stream, should have been number, not none.
- Don't show project footer in tutorial when in non-editable mode.
- [#410](https://github.com/wordplaydev/wordplay/issues/410): Fixed alignment of project preview glyphs.

### Maintenance
Expand Down
12 changes: 9 additions & 3 deletions src/components/project/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@
>('fullscreen');
$: pageFullscreen?.set({
on: layout.isFullscreen(),
// Don't turn on fullscreen if we were requested to show output.
on: layout.isFullscreen() && !showOutput,
background: outputBackground,
});
Expand Down Expand Up @@ -495,7 +496,12 @@
),
),
],
layout ? layout.fullscreenID : undefined,
layout
? layout.fullscreenID
: // If no layout, and showing output was requested, we fullscreen on output
showOutput
? TileKind.Output
: undefined,
);
// Now that we've handled it, unset it.
Expand Down Expand Up @@ -1328,7 +1334,7 @@
<!-- Put some extra buttons in the output toolbar -->
{#if tile.kind === TileKind.Output}
<CommandButton command={Restart} />
{#if requestedPlay}<Button
{#if showOutput || requestedPlay}<Button
uiid="editProject"
tip={$locales.get(
(l) =>
Expand Down

0 comments on commit 4af3572

Please sign in to comment.