feat(mobile): use custom icon for configure launchbar

This commit is contained in:
Elian Doran 2025-01-04 22:00:39 +02:00
parent fa6d229ecf
commit 6966f92339
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,8 @@ export default class RootCommandExecutor extends Component {
}
async showLaunchBarSubtreeCommand() {
await this.showAndHoistSubtree('_lbRoot');
const rootNote = utils.isMobile() ? "_lbMobileRoot" : "_lbRoot";
await this.showAndHoistSubtree(rootNote);
this.showLeftPaneCommand();
}

View File

@ -156,7 +156,7 @@ const TPL = `
</li>
<li class="dropdown-item" data-trigger-command="showLaunchBarSubtree">
<span class="bx bx-sidebar"></span>
<span class="bx ${utils.isMobile() ? "bx-mobile" : "bx-sidebar"}"></span>
${t('global_menu.configure_launchbar')}
</li>

View File

@ -2,6 +2,7 @@ import { t } from "../services/i18n.js";
import BasicWidget from "./basic_widget.js";
import contextMenu from "../menus/context_menu.js";
import appContext from "../components/app_context.js";
import utils from "../services/utils.js";
const TPL = `<div class="spacer"></div>`;
@ -30,7 +31,7 @@ export default class SpacerWidget extends BasicWidget {
x: e.pageX,
y: e.pageY,
items: [
{title: t("spacer.configure_launchbar"), command: "showLaunchBarSubtree", uiIcon: "bx bx-sidebar"}
{title: t("spacer.configure_launchbar"), command: "showLaunchBarSubtree", uiIcon: "bx " + (utils.isMobile() ? "bx-mobile" : "bx-sidebar")}
],
selectMenuItemHandler: ({command}) => {
if (command) {