1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 01:30:16 +02:00

Adds functionality of toggling Full Screen in Files Mode

This commit is contained in:
Arnab Sen
2022-03-20 17:52:32 +05:30
parent 1e0d04d7a0
commit 0ceb4ecc5e
2 changed files with 4 additions and 1 deletions

View File

@@ -285,7 +285,7 @@ export default class Footer extends Component {
<button
onClick={this.layoutBtnClickhandler.bind(this, 4)}
id="layoutBtn4"
class="mode-btn hint--top-left hint--rounded hide-in-file-mode hide-on-mobile"
class="mode-btn hint--top-left hint--rounded hide-on-mobile"
aria-label={i18n._(t`Switch to full screen preview`)}
>
<svg viewBox="0 0 100 100">

View File

@@ -735,6 +735,9 @@ export default class App extends Component {
}
layoutBtnClickHandler(layoutId) {
if (layoutId === this.state.currentLayoutMode) {
layoutId = 2;
}
this.saveSetting('layoutMode', layoutId);
trackEvent('ui', 'toggleLayoutClick', layoutId);
this.toggleLayout(layoutId);