Tweaking the styling of the sync button
This commit is contained in:
parent
b936a435ab
commit
ae2135714d
@ -43,8 +43,12 @@ async function test(db: KvPrimitives) {
|
||||
"address.city",
|
||||
"San Francisco",
|
||||
]],
|
||||
select: ["name"],
|
||||
});
|
||||
assertEquals(results[0], {
|
||||
key: ["kv", "complicated"],
|
||||
value: { name: "Frank" },
|
||||
});
|
||||
assertEquals(results[0].key, ["kv", "complicated"]);
|
||||
}
|
||||
|
||||
Deno.test("Test Deno KV DataStore", async () => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { KV, KvKey, KvPrimitives, KvQueryOptions } from "./kv_primitives.ts";
|
||||
import { IDBPDatabase, openDB } from "https://esm.sh/idb@7.1.1/with-async-ittr";
|
||||
|
||||
const sep = "\uffff";
|
||||
const sep = "\0";
|
||||
|
||||
export class IndexedDBKvPrimitives implements KvPrimitives {
|
||||
db!: IDBPDatabase<any>;
|
||||
|
@ -210,8 +210,8 @@ export class MainUI {
|
||||
? [{
|
||||
icon: RefreshCwIcon,
|
||||
description: this.editor.syncMode
|
||||
? "Currently in sync mode: switch to online mode"
|
||||
: "Currently in online mode: switch to sync mode",
|
||||
? "Currently in Sync mode, click to switch to Online mode"
|
||||
: "Currently in Online mode, click to switch to Sync mode",
|
||||
class: this.editor.syncMode ? "sb-enabled" : undefined,
|
||||
callback: () => {
|
||||
(async () => {
|
||||
|
@ -72,7 +72,8 @@
|
||||
}
|
||||
|
||||
.sb-actions button.sb-enabled {
|
||||
color: var(--action-button-active-color);
|
||||
background-color: var(--top-border-color);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.sb-actions button:hover {
|
||||
|
Loading…
Reference in New Issue
Block a user