Skip to content

Commit 8863daa

Browse files
committed
fix: preserve pen-nib icon on design-mode toggle
The toggle handler hardcoded fa-feather when exiting design mode, overwriting the pen-nib icon set in HTML.
1 parent 9b4119d commit 8863daa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/view/CentralControlBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ define(function (require, exports, module) {
238238
const $collapseBtn = $("#ccbCollapseEditorBtn");
239239
$collapseBtn.toggleClass("is-active", editorCollapsed)
240240
.attr("title", editorCollapsed ? Strings.CCB_SWITCH_TO_CODE_EDITOR : Strings.CCB_SWITCH_TO_DESIGN_MODE);
241-
$collapseBtn.find("i").attr("class", editorCollapsed ? "fa-solid fa-code" : "fa-solid fa-feather");
241+
$collapseBtn.find("i").attr("class", editorCollapsed ? "fa-solid fa-code" : "fa-solid fa-pen-nib fa-rotate-90");
242242
if (_toggleDesignModeCommand) {
243243
_toggleDesignModeCommand.setChecked(editorCollapsed);
244244
}

0 commit comments

Comments
 (0)