move split button in top button row (and hide in phone mode)
This commit is contained in:
Родитель
060d281a57
Коммит
2796ac5833
|
@ -2122,10 +2122,13 @@ module TDev
|
|||
|
||||
if (snapView) return;
|
||||
|
||||
var splitBtn: HTMLElement = this.widgetEnabled("splitScreen") ? Editor.mkTopMenuItem("svg:split,black", lf("split"), Ticks.codeSplit, "",() => TheEditor.setSplitScreen(!SizeMgr.splitScreenRequested, true)) : null;
|
||||
if (splitBtn) splitBtn.classList.add("phone-hidden");
|
||||
var top = div("topButtons",
|
||||
this.backBtnDiv = div("inlineBlock topMenu-button-container search-back"),
|
||||
this.playBtnDiv = div("inlineBlock topMenu-button-container"),
|
||||
this.widgetEnabled("undoButton") ? Editor.mkTopMenuItem("svg:undo,black", lf("undo"), Ticks.codeUndo, "Ctrl-Z", () => this.topUndo()) : null,
|
||||
this.widgetEnabled("undoButton") ? Editor.mkTopMenuItem("svg:undo,black", lf("undo"), Ticks.codeUndo, "Ctrl-Z",() => this.topUndo()) : null,
|
||||
splitBtn,
|
||||
this.portraitSearchContainer
|
||||
);
|
||||
this.updateBackButton();
|
||||
|
|
|
@ -190,10 +190,6 @@ module TDev
|
|||
addBtn(HTML.mkRoundButton("svg:Recycle,black", lf("update"), Ticks.sideUpdate, () => {
|
||||
TheEditor.updateScript();
|
||||
}));
|
||||
if (!isParent && TheEditor.widgetEnabled("splitButton") && SizeMgr.canSplitScreen())
|
||||
addBtn(HTML.mkRoundButton("svg:Split,black", lf("split"), Ticks.sideSplit, () => {
|
||||
TheEditor.setSplitScreen(!SizeMgr.splitScreenRequested, true)
|
||||
}));
|
||||
if (onlyParent && TheEditor.widgetEnabled("logsButton"))
|
||||
addBtn(HTML.mkRoundButton("svg:CommandLine,black", lf("logs"), Ticks.sideLogs, () => {
|
||||
TheEditor.showAppLog(app);
|
||||
|
|
|
@ -157,6 +157,7 @@ module TDev {
|
|||
codeStartSelection,
|
||||
codeSurround,
|
||||
codeUndo,
|
||||
codeSplit,
|
||||
codeWhile,
|
||||
codeUninstallScript,
|
||||
codeBackFromSearch,
|
||||
|
@ -234,7 +235,6 @@ module TDev {
|
|||
sideAddVariable,
|
||||
sideAddAnything,
|
||||
sideHelp,
|
||||
sideSplit,
|
||||
sideBraces,
|
||||
sideDebug,
|
||||
sideLogs,
|
||||
|
|
|
@ -1944,3 +1944,8 @@ a.button, a.button:hover, a.button:visited {
|
|||
background: transparent;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.phone .phone-hidden,
|
||||
.portrait .portrait-hidden {
|
||||
display:none;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче