sync status widget fix

This commit is contained in:
zadam 2022-12-18 20:29:17 +01:00
parent db6dbc7821
commit 0de0b6fd06
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import options from "../services/options.js";
import syncService from "../services/sync.js"; import syncService from "../services/sync.js";
const TPL = ` const TPL = `
<div class="sync-status-widget icon-action"> <div class="sync-status-widget launcher-button">
<style> <style>
.sync-status-widget { .sync-status-widget {
} }

View File

@ -227,7 +227,9 @@ function resetLauncher(noteId) {
* created just to fill this user hole. * created just to fill this user hole.
* *
* Another use case would be for script-packages (of which only few exists) which could this way register automatically * Another use case would be for script-packages (of which only few exists) which could this way register automatically
* into the launchbar. For such use cases this might be a usable replacement, but I'm not yet clear on that. * into the launchbar. For such use cases this might be a usable replacement, but it should look a bit differently:
* - launcher should be added into the available shortcuts, not visible. Part of the reasoning is that adding them to visible
* could mess up the layout - e.g. the sync status being below.
*/ */
function createOrUpdateScriptLauncherFromApi(opts) { function createOrUpdateScriptLauncherFromApi(opts) {
const launcherId = opts.id || ("tb" + opts.title.replace(/[^[a-z0-9]/gi, "")); const launcherId = opts.id || ("tb" + opts.title.replace(/[^[a-z0-9]/gi, ""));