Skip to content

Commit 1b3e6ce

Browse files
committed
chore: dont chnage the icon for design on cliking to code as its confusing
1 parent dda3822 commit 1b3e6ce

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/view/CentralControlBar.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ define(function (require, exports, module) {
3737
let livePreviewWasOpen = false;
3838
let savedSidebarMaxSize = null;
3939
let applyingCollapsedLayout = false;
40-
let penNibIconHTML = null;
4140

4241
function _getRenderedSidebarWidth() {
4342
// Use offsetWidth (not jQuery's outerWidth) to force a synchronous reflow
@@ -218,7 +217,6 @@ define(function (require, exports, module) {
218217
const $collapseBtn = $("#ccbCollapseEditorBtn");
219218
$collapseBtn.toggleClass("is-active", editorCollapsed)
220219
.attr("title", editorCollapsed ? Strings.CCB_SWITCH_TO_CODE_EDITOR : Strings.CCB_SWITCH_TO_DESIGN_MODE);
221-
$collapseBtn.html(editorCollapsed ? '<i class="fa-solid fa-code"></i>' : penNibIconHTML);
222220
if (_toggleDesignModeCommand) {
223221
_toggleDesignModeCommand.setChecked(editorCollapsed);
224222
}
@@ -277,10 +275,6 @@ define(function (require, exports, module) {
277275
$sidebar = $("#sidebar");
278276
$content = $(".content");
279277

280-
// Cache the authored pen-nib SVG from the DOM so the toggle handler
281-
// can restore it after swapping in the fa-code icon for design mode.
282-
penNibIconHTML = $("#ccbCollapseEditorBtn").html();
283-
284278
_wireButtons();
285279
// The HTML titles on the control-bar buttons are fallback English
286280
// strings; set the localized versions up front so the initial render

0 commit comments

Comments
 (0)