@strifeapp/strife 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/toolbar-element.js +7 -4
- package/package.json +1 -1
package/dist/toolbar-element.js
CHANGED
|
@@ -189,6 +189,9 @@ button:focus-visible {
|
|
|
189
189
|
inline-size: 100%;
|
|
190
190
|
padding: 0;
|
|
191
191
|
color: var(--_muted);
|
|
192
|
+
/* The mark is the handle, not a button into Strife: a pointer gets the plain arrow, since
|
|
193
|
+
clicking it does nothing. Touch, where the tap unfolds the island, shows no cursor. */
|
|
194
|
+
cursor: default;
|
|
192
195
|
}
|
|
193
196
|
.mark svg {
|
|
194
197
|
display: block;
|
|
@@ -508,10 +511,10 @@ export class StrifeToolbarElement extends HTMLElement {
|
|
|
508
511
|
this.#mark = root.querySelector('.mark');
|
|
509
512
|
this.#tip = root.querySelector('.tip');
|
|
510
513
|
this.#mark?.addEventListener('click', () => {
|
|
511
|
-
//
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
514
|
+
// The mark is the toolbar's handle, not a shortcut into Strife: only "Edit in Strife"
|
|
515
|
+
// opens a document. On touch the first tap unfolds the island; with a pointer, hover
|
|
516
|
+
// (and keyboard focus) already does that, so a click has nothing left to do.
|
|
517
|
+
if (!hoverCapable())
|
|
515
518
|
this.expanded = !this.expanded;
|
|
516
519
|
});
|
|
517
520
|
root.querySelector('.edit')?.addEventListener('click', () => this.open());
|