mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-29 09:40:10 +02:00
Adds functionality of toggling Full Screen in Files Mode
This commit is contained in:
@@ -285,7 +285,7 @@ export default class Footer extends Component {
|
|||||||
<button
|
<button
|
||||||
onClick={this.layoutBtnClickhandler.bind(this, 4)}
|
onClick={this.layoutBtnClickhandler.bind(this, 4)}
|
||||||
id="layoutBtn4"
|
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`)}
|
aria-label={i18n._(t`Switch to full screen preview`)}
|
||||||
>
|
>
|
||||||
<svg viewBox="0 0 100 100">
|
<svg viewBox="0 0 100 100">
|
||||||
|
@@ -735,6 +735,9 @@ export default class App extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
layoutBtnClickHandler(layoutId) {
|
layoutBtnClickHandler(layoutId) {
|
||||||
|
if (layoutId === this.state.currentLayoutMode) {
|
||||||
|
layoutId = 2;
|
||||||
|
}
|
||||||
this.saveSetting('layoutMode', layoutId);
|
this.saveSetting('layoutMode', layoutId);
|
||||||
trackEvent('ui', 'toggleLayoutClick', layoutId);
|
trackEvent('ui', 'toggleLayoutClick', layoutId);
|
||||||
this.toggleLayout(layoutId);
|
this.toggleLayout(layoutId);
|
||||||
|
Reference in New Issue
Block a user