Skip to content

Commit

Permalink
Add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed Apr 5, 2024
1 parent 4c8796d commit 79184bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions blocks/edit/da-content/da-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default class DaContent extends LitElement {
<da-editor path="${this.details.sourceUrl}"></da-editor>
<da-version></da-version>
<div class="da-preview-menubar">
<span class="da-preview-menuitem show-preview" @click=${this.showPreview}></span>
<span class="da-versions-menuitem show-versions" @click=${this.showVersions}></span>
<span class="da-preview-menuitem show-preview" title="Preview" @click=${this.showPreview}></span>
<span class="da-versions-menuitem show-versions" title="Versions" @click=${this.showVersions}></span>
</div>
</div>
<da-preview path=${this.details.previewUrl}></da-preview>
Expand Down
11 changes: 3 additions & 8 deletions blocks/edit/da-versions/da-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ export default class DaVersions extends LitElement {
}

aggregateList(list) {
// for (let i = 0; i < list.length; i += 1) {
// if (!list[i].timestamp) {
// list[i].timestamp = 1;
// }
// }
// make sure each element has a timestamp
list.forEach((l) => { if (!l.timestamp) { l.timestamp = 1; } });
// and sort by timestamp
Expand Down Expand Up @@ -259,9 +254,9 @@ export default class DaVersions extends LitElement {
render() {
return html`
<div class="da-versions-menubar">
<span class="da-versions-menuitem da-versions-create" @click=${this.createVersion}></span>
<span class="da-versions-menuitem da-versions-restore" @click=${this.restoreVersion}></span>
<span class="da-versions-menuitem da-versions-close" @click=${this.hideVersions}></span>
<span class="da-versions-menuitem da-versions-create" title="Create Version" @click=${this.createVersion}></span>
<span class="da-versions-menuitem da-versions-restore" title="Restore Version" @click=${this.restoreVersion}></span>
<span class="da-versions-menuitem da-versions-close" title="Close" @click=${this.hideVersions}></span>
</div>
<div class="da-versions-panel">
<ul @click=${this.versionSelected}>
Expand Down

0 comments on commit 79184bf

Please sign in to comment.